CVE-2026-78661
Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.409% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 7.5 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Assessment source · checked 2026-11-19T16:49:43.074Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T16:49:43.074Z | Ubuntu Security |
| epss | verified | 2026-11-19T16:04:54.940Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:37.080Z | OSV |
| affected | verified | 2026-11-19T12:59:10.167Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:59:10.167Z | CVE Program |
Affected versions and configuration
golang.org/x/net golang.org/x/net/html; default status: unaffected: 0 to < 0.62.0 [affected; scheme: semver]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "golang-1.23",
"debian": "https://tracker.debian.org/pkg/golang-1.23",
"source": "https://ubuntu.com/security/cve?package=golang-1.23",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=golang-1.23",
"statuses": [
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
}
]
}
]Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "golang-1.22",
"debian": "https://tracker.debian.org/pkg/golang-1.22",
"source": "https://ubuntu.com/security/cve?package=golang-1.22",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=golang-1.22",
"statuses": [
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "golang.org/x/net",
"product": "golang.org/x/net/html",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "0.62.0",
"versionType": "semver"
}
],
"packageName": "golang.org/x/net/html",
"collectionURL": "https://pkg.go.dev",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "parser.addText"
},
{
"name": "parser.fosterParent"
},
{
"name": "parser.parse"
},
{
"name": "Parse"
},
{
"name": "ParseFragment"
},
{
"name": "ParseFragmentWithOptions"
},
{
"name": "ParseWithOptions"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"cvssV3_1": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 7.5,
"attackVector": "NETWORK",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"integrityImpact": "NONE",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "NONE",
"privilegesRequired": "NONE",
"confidentialityImpact": "HIGH"
}
},
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-78661",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-11-04T16:40:03.476042Z"
}
}
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"type": "CWE",
"cweId": "CWE-407",
"description": "CWE-407 Inefficient Algorithmic Complexity"
}
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-11-04T16:40:30.972Z"
}
}
]
}Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "golang.org/x/net",
"product": "golang.org/x/net/html",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "0.62.0",
"versionType": "semver"
}
],
"packageName": "golang.org/x/net/html",
"collectionURL": "https://pkg.go.dev",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "parser.addText"
},
{
"name": "parser.fosterParent"
},
{
"name": "parser.parse"
},
{
"name": "Parse"
},
{
"name": "ParseFragment"
},
{
"name": "ParseFragmentWithOptions"
},
{
"name": "ParseWithOptions"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"cvssV3_1": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 7.5,
"attackVector": "NETWORK",
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"integrityImpact": "NONE",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "NONE",
"privilegesRequired": "NONE",
"confidentialityImpact": "HIGH"
}
},
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-78661",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-11-04T16:40:03.476042Z"
}
}
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"type": "CWE",
"cweId": "CWE-407",
"description": "CWE-407 Inefficient Algorithmic Complexity"
}
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-11-04T16:40:30.972Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GO-2026-6860",
"aliases": [
"CVE-2026-78661"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.62.0"
}
]
}
],
"package": {
"name": "golang.org/x/net",
"purl": "pkg:golang/golang.org/x/net",
"ecosystem": "Go"
},
"versions": [],
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2026-6860.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "golang.org/x/net/html",
"symbols": [
"Parse",
"ParseFragment",
"ParseFragmentWithOptions",
"ParseWithOptions",
"parser.addText",
"parser.fosterParent",
"parser.parse"
]
}
]
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://go.dev/cl/849365",
"type": "FIX"
},
{
"url": "https://go.dev/issue/82224",
"type": "REPORT"
},
{
"url": "https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2026-6860",
"review_status": "REVIEWED"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Go / package | golang.org/x/net | Not a distribution channel | 0.62.0 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:37.080ZArchived source JSON
Source publication: 2026-10-27T21:16:18.000Z
Source modification: 2026-10-27T21:30:04.890ZDocument fingerprint
d85289dcf7894a7fab311c831399017440686686353d135825e7603131cd938e - Ubuntu SecurityConsulted: 2026-11-19T16:49:43.074ZArchived source JSON
Source publication: 2026-10-27T22:18:00.000Z
Source modification: 2026-11-05T20:47:20.030ZDocument fingerprint
7e1db211690f8838fc90fd5363ff190720f1dfeae179dcb0a9707160e11ff5a3 - Ubuntu SecurityConsulted: 2026-11-19T16:51:06.889ZArchived source JSON
Source publication: 2026-10-27T22:18:00.000Z
Source modification: 2026-11-05T20:47:20.030ZDocument fingerprint
94040885d557427a8e30de31b43d048090fe90388dbc3c6b41d4dc44deed1e78 - CVE ProgramConsulted: 2026-11-19T12:59:10.167ZArchived source JSON
Source publication: 2026-10-27T21:38:56.517Z
Source modification: 2026-11-04T16:40:30.972ZDocument fingerprint
af3733d8fab5fb973d43c0d40cf76ac38b58b4da10719bedbd95d1ec3d4cb9ae - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:54.940ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
96853e60cbd03e738f78e465fb9b227c9cda51415230f40ab47644f75dd29296
Official status history
- UNKNOWN → PUBLISHED · · evidence