LOWCVSS v4 2.3Vulnerability

CVE-2026-126063

### Summary Nokogiri's HTML5 serializer did not escape text inside `noscript` elements, or `<` and `>` inside attribute values. When a document parsed with the default options is serialized, a browser with scripting enabled can parse the output into markup that Nokogiri's parser never produced. This is a mutation XSS for applications that sanitize untrusted HTML with `Nokogiri::HTML5`, allow `noscript` elements, and send the serialized output to browsers. Nokogiri 1.19.5 escapes both, as the HTML standard's serialization algorithm requires. Text inside `noscript` is still emitted unescaped for documents parsed with `parse_noscript_content_as_text: true`. Only the C extension (CRuby and TruffleRuby) is affected. JRuby does not implement `Nokogiri::HTML5`. ### Severity The Nokogiri maintainers have evaluated this as low severity (CVSS 2.3, `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`). Exploitation requires an application that allows `noscript` in sanitized HTML. Loofah and rails-html-sanitizer do not allow it by default, and Sanitize always removes it. ### Mitigation Upgrade to Nokogiri 1.19.5 or later. Applications that sanitize HTML and allow `noscript` should parse with `parse_noscript_content_as_text: true` (available since Nokogiri 1.17.0), or remove `noscript` elements. This is the workaround for earlier versions, and it is recommended on every version: some content inside `noscript` is serialized unchanged, as the standard requires. ### Credit This issue was responsibly reported by @a-zara-n.

Properties

Severity
low
Summary
Nokogiri: Mutation XSS through `noscript` content in Nokogiri's HTML5 serializer
Nvd fetched at
2026-11-10T23:33:48.924589+00:00
Cvss severity
LOW
Cvss score
2.3
Retrieved at
2026-11-10T23:34:27+00:00
Ghsa published
2026-11-10T20:47:36Z
Source url
https://github.com/advisories/GHSA-4p39-36wj-23h4
Ghsa updated
2026-11-10T20:47:37Z
Ghsa id
GHSA-4p39-36wj-23h4
Last source
GitHub Advisory Database
Score
2.3
Cvss version
4.0
Cve id
CVE-2026-126063
Cvss vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
First seen by Signal
2026-11-10T23:31:41+00:00
Is ghsa only
false
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published at
2026-11-10T21:19:23.990
Last modified
2026-11-10T21:19:23.990

Related Entities (4)

AFFECTS (1)

→[Software]rubygems/nokogiri

VULNERABLE_TO (1)

←[Software]rubygems/nokogiri

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-126063 (CVSS v4 2.3) — Ninja Signal Threat Intelligence | Ninja Signal