{"id":"CVE-2026-78661","revision":null,"records":[{"revision":"d7ffc9a7a05849bf9d83d1e92bf358cb","observedAt":"2026-10-27T22:45:55.385+00:00","statement":{"source":"cve-program","id":"CVE-2026-78661","aliases":[],"title":"Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net","description":"When coalescing adjacent text nodes in addText and fosterParent, appending to an existing TextNode's Data via string concatenation (n.Data += text) reallocated and copied the accumulated string on every token. Inputs containing many short text runs separated by ignored end tags (such as \"a</x>\") caused O(n^2) allocations and byte copies. Accumulate coalesced text in per-node byte slices during parsing and materialize Data strings once at the end of parse.","state":0,"publishedAt":"2026-10-27T21:38:56.517+00:00","modifiedAt":"2026-10-27T21:38:56.517+00:00","affected":[{"ecosystem":"https://pkg.go.dev","name":"golang.org/x/net/html","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"golang.org/x/net\",\n                    \"product\": \"golang.org/x/net/html\",\n                    \"collectionURL\": \"https://pkg.go.dev\",\n                    \"packageName\": \"golang.org/x/net/html\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"0.62.0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"parser.addText\"\n                        },\n                        {\n                            \"name\": \"parser.fosterParent\"\n                        },\n                        {\n                            \"name\": \"parser.parse\"\n                        },\n                        {\n                            \"name\": \"Parse\"\n                        },\n                        {\n                            \"name\": \"ParseFragment\"\n                        },\n                        {\n                            \"name\": \"ParseFragmentWithOptions\"\n                        },\n                        {\n                            \"name\": \"ParseWithOptions\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[],"references":["https://go.dev/cl/849365","https://go.dev/issue/82224","https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs","https://pkg.go.dev/vuln/GO-2026-6860"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-78661","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-78661","identifiers":["CVE-2026-78661"]},"retained":false,"historicalAffected":[]},{"revision":"2577b1c7fadc47a6896e49c1b9a7642d","observedAt":"2026-10-30T11:58:18.837+00:00","statement":{"source":"euvd","id":"EUVD-2026-111399","aliases":["CVE-2026-78661","GHSA-75pg-wvh3-34jr"],"title":"When coalescing adjacent text nodes in addText and fosterParent, appending to an existing TextNode's Data via string concatenation (n.Data += text) reallocated and copied the accumulated string on every token. Inputs containing many short t…","description":"When coalescing adjacent text nodes in addText and fosterParent, appending to an existing TextNode's Data via string concatenation (n.Data += text) reallocated and copied the accumulated string on every token. Inputs containing many short text runs separated by ignored end tags (such as \"a</x>\") caused O(n^2) allocations and byte copies. Accumulate coalesced text in per-node byte slices during parsing and materialize Data strings once at the end of parse.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[],"references":["https://go.dev/cl/849365","https://go.dev/issue/82224","https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs","https://pkg.go.dev/vuln/GO-2026-6860"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-111399","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Oct 27, 2026, 9:38:56 PM","dateUpdated":"Oct 27, 2026, 9:38:56 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-111399","identifiers":["EUVD-2026-111399","CVE-2026-78661","GHSA-75pg-wvh3-34jr"]},"retained":false,"historicalAffected":[]},{"revision":"2bed8d8a1a464ca3b8a50339f2427d5b","observedAt":"2026-10-29T21:50:49.331+00:00","statement":{"source":"nvd","id":"CVE-2026-78661","aliases":[],"title":"When coalescing adjacent text nodes in addText and fosterParent, appending to an existing TextNode's Data via string concatenation (n.Data += text) reallocated and copied the accumulated string on every token. Inputs containing many short t…","description":"When coalescing adjacent text nodes in addText and fosterParent, appending to an existing TextNode's Data via string concatenation (n.Data += text) reallocated and copied the accumulated string on every token. Inputs containing many short text runs separated by ignored end tags (such as \"a</x>\") caused O(n^2) allocations and byte copies. Accumulate coalesced text in per-node byte slices during parsing and materialize Data strings once at the end of parse.","state":0,"publishedAt":"2026-10-27T22:18:05.93+00:00","modifiedAt":"2026-10-28T15:24:56.033+00:00","affected":[],"metrics":[],"references":["https://go.dev/cl/849365","https://go.dev/issue/82224","https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs","https://pkg.go.dev/vuln/GO-2026-6860"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-78661","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":[],"productCriteria":[],"sourceDates":{"published":"2026-10-27T22:18:05.930","lastModified":"2026-10-28T15:24:56.033"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-78661","identifiers":["CVE-2026-78661"]},"retained":false,"historicalAffected":[]},{"revision":"0bb46537b04f44b8a0c224d67613520c","observedAt":"2026-10-27T21:48:52.964+00:00","statement":{"source":"osv","id":"GO-2026-6860","aliases":["CVE-2026-78661"],"title":"Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net","description":"When coalescing adjacent text nodes in addText and fosterParent, appending to an existing TextNode's Data via string concatenation (n.Data += text) reallocated and copied the accumulated string on every token. Inputs containing many short text runs separated by ignored end tags (such as \"a</x>\") caused O(n^2) allocations and byte copies.\n\nAccumulate coalesced text in per-node byte slices during parsing and materialize Data strings once at the end of parse.","state":0,"publishedAt":"2026-10-27T21:16:18+00:00","modifiedAt":"2026-10-27T21:30:04.8908091+00:00","affected":[{"ecosystem":"Go","name":"golang.org/x/net","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.62.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://go.dev/cl/849365","https://go.dev/issue/82224","https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-6860","license":"OSV · upstream source license applies","key":"osv:GO-2026-6860","identifiers":["GO-2026-6860","CVE-2026-78661"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-31T05:45:30.8722609+00:00","complete":true,"records":1766,"lastAttemptAt":"2026-10-31T05:45:30.8722609+00:00","lastSuccessAt":"2026-10-31T05:45:31.0332296+00:00","error":null,"lastVerifiedAt":"2026-10-31T05:45:31.0332297+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-9266d7b009bf9c4a0ccdcb5cbdea7f905cb3c4d92fd3b41581ece16b2cfdc4e7-8fda870d2dfde75a20cf3b9f93251dc89192f01732db2c40de1655416075c161","complete":true,"records":417488,"lastAttemptAt":"2026-10-31T05:45:30.2084603+00:00","lastSuccessAt":"2026-10-31T05:45:30.187752+00:00","error":null,"lastVerifiedAt":"2026-10-31T05:45:30.2084603+00:00","snapshotPublishedAt":"2026-10-31T05:26:27+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-c5eb069e059248ab9c1b8cc754ce0885","complete":true,"records":13565,"lastAttemptAt":"2026-10-31T05:45:57.2866928+00:00","lastSuccessAt":"2026-10-31T03:47:38.206+00:00","error":null,"lastVerifiedAt":"2026-10-31T03:47:38.206+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13637,"expectedIdentifiers":13637,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-31T05:45:30.8722609+00:00","complete":true,"records":1094,"lastAttemptAt":"2026-10-31T05:45:30.8722609+00:00","lastSuccessAt":"2026-10-31T05:45:31.033978+00:00","error":null,"lastVerifiedAt":"2026-10-31T05:45:31.0339781+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-0826d0b2e3bb4e3baeab9fb71c23bd8d","complete":false,"records":13577,"lastAttemptAt":"2026-10-31T05:45:56.6846453+00:00","lastSuccessAt":"2026-10-31T05:45:56.681+00:00","error":null,"lastVerifiedAt":"2026-10-31T05:45:56.681+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13547,"expectedIdentifiers":13637,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-21dcd6662970dfea02e4ea60ee637115e8d92664947484d2b9276b3f6568a84f","complete":true,"records":9815,"lastAttemptAt":"2026-10-31T05:45:30.8297068+00:00","lastSuccessAt":"2026-10-30T23:47:34.1817587+00:00","error":null,"lastVerifiedAt":"2026-10-31T05:45:30.8297068+00:00","snapshotPublishedAt":"2026-10-30T23:33:17+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-2de9ccc5290f060c7aa63f89c25dd76f655a64ba1aba7c05c97fa3bee4f09899","complete":true,"records":1967,"lastAttemptAt":"2026-10-31T05:45:30.2533058+00:00","lastSuccessAt":"2026-10-28T20:55:34.2982937+00:00","error":null,"lastVerifiedAt":"2026-10-31T05:45:30.2533058+00:00","snapshotPublishedAt":"2026-10-28T20:03:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-f95f76cd406ae5bae3de632ad37fd2d5160b44f5e6b51748ac6f8f0c0c88e72b","complete":true,"records":3028,"lastAttemptAt":"2026-10-31T05:45:30.8413581+00:00","lastSuccessAt":"2026-10-30T23:47:38.4914494+00:00","error":null,"lastVerifiedAt":"2026-10-31T05:45:30.8413581+00:00","snapshotPublishedAt":"2026-10-30T23:18:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-3ce2e3336768d0abd5b020f6f12bd5502a5deb02700e9d89d279597dce6e72ae","complete":true,"records":230992,"lastAttemptAt":"2026-10-31T05:45:30.7272024+00:00","lastSuccessAt":"2026-10-31T03:47:08.0119269+00:00","error":null,"lastVerifiedAt":"2026-10-31T05:45:30.7272024+00:00","snapshotPublishedAt":"2026-10-31T03:03:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}