{
  "id": "CVE-2026-78661",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-78661",
  "published_at": "2026-10-27T21:38:56.517Z",
  "title": "Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net",
  "vendor": "golang.org/x/net",
  "product": "golang.org/x/net/html",
  "cvss": {
    "score": 7.5,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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\u003c/x\u003e\") 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.",
  "cwe": "CWE-407",
  "cvss_by_source": {
    "cisa-adp": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "golang.org/x/net",
        "product": "golang.org/x/net/html",
        "ranges": [
          "\u003c 0.62.0"
        ],
        "fixed_in": [
          "0.62.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade golang.org/x/net/html to 0.62.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
