# CVE-2026-126063: Nokogiri: Mutation XSS through `noscript` content in Nokogiri's HTML5 serializer

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA: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.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-11-10T20:14:40.408Z
- Modified: 2026-11-13T16:18:02.683Z
- Also known as: GHSA-4p39-36wj-23h4
- Weaknesses: CWE-79, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Nokogiri is an open source XML and HTML library for the Ruby programming language. From 1.12.0 until 1.19.5, the C extension on CRuby and TruffleRuby has a Nokogiri::HTML5 serializer that does not escape text inside noscript elements or angle brackets inside attribute values. When an application sanitizes untrusted HTML with the default parsing options, allows noscript, and sends serialized output to a scripting-enabled browser, the browser can parse markup that Nokogiri did not produce, enabling mutation cross-site scripting. Using parse_noscript_content_as_text: true is the recommended workaround, not the vulnerable default. JRuby is not affected because it does not implement Nokogiri::HTML5. This issue is fixed in version 1.19.5.

(As written by CVE List.)

## Affected

- sparklemotion nokogiri: >= 1.12.0, < 1.19.5
- nokogiri (RubyGems): from 1.12.0 before 1.19.5

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-4p39-36wj-23h4> (web)
- <https://github.com/sparklemotion/nokogiri/pull/3752> (web)
- <https://github.com/sparklemotion/nokogiri/commit/3e84df6ff7ab4d78f446e3a415430bd69a055d32> (web)
- <https://github.com/sparklemotion/nokogiri/commit/c6c0bffbdcd194694995acafeeed27326b0805f8> (web)
- <https://github.com/sparklemotion/nokogiri/releases/tag/v1.19.5> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/GHSA-4p39-36wj-23h4.yml> (web)
- <https://github.com/sparklemotion/nokogiri> (package)

## Sources

- CVE List: [CVE-2026-126063](https://www.cve.org/CVERecord?id=CVE-2026-126063), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-4p39-36wj-23h4](https://github.com/advisories/GHSA-4p39-36wj-23h4), CC-BY-4.0, modified 2026-11-10
- NVD: [CVE-2026-126063](https://nvd.nist.gov/vuln/detail/CVE-2026-126063), Public domain, modified 2026-11-13

---

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