# CVE-2026-42506: Invoking incorrect handling of namespaced elements in foreign content in golang.org/x/net/html

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-05-22T02:46:43.000Z
- Modified: 2026-07-23T16:10:00.137Z
- Also known as: GO-2026-5025
- Related: CGA-c62r-25jr-fmqg
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## Description

Parsing arbitrary HTML which is then rendered using Render can result in an unexpected HTML tree. This can be leveraged to execute XSS attacks in applications that attempt to sanitize input HTML before rendering.

(As written by CVE List.)

## Affected

- golang.org/x/net/html: before 0.55.0
- golang.org/x/net (Go): before 0.55.0
- golang net: before 0.55.0

## References

- <https://go.dev/issue/79571> (issue-tracking, report)
- <https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8> (mailing-list, web)
- <https://go.dev/cl/781700> (fix, issue-tracking)
- <https://pkg.go.dev/vuln/GO-2026-5025> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-42506](https://www.cve.org/CVERecord?id=CVE-2026-42506), CVE Terms of Use, modified 2026-05-22
- Go Vulnerability Database: [GO-2026-5025](https://pkg.go.dev/vuln/GO-2026-5025), CC-BY-4.0, modified 2026-05-30
- NVD: [CVE-2026-42506](https://nvd.nist.gov/vuln/detail/CVE-2026-42506), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-42506 · Whole record: https://cve.day/CVE-2026-42506.json · Rebuilt by cve.day 2026-11-25T22:59:22.189Z
