Skip to main content
CVE-2026-126063VulnerabilityPublished Updated

Ruby nokogiri: From 1.12.0 until 1.19.5, the C extension on CRuby and TruffleRuby has a Nokogiri::HTML5 serializer

Affects ruby-nokogiriSource GCVE Database

0
Compare
Authoritative record:CVE-2026-126063· Low 2.3

Not known to be exploited · CVSS 2.3 Low · fixed in 1.19.5 : update ruby-nokogiri when convenient.

Data as of 13 Nov 2026, 22:32 UTC

CVSS 4.0 base score
2.3Low
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.02.3
Patch
Available – fixed in 1.19.5
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 evidence

  1. Disclosed: evidence found.

    CVE published 10 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10ruby-nokogiripkg:deb/ubuntu/ruby-nokogiri?arch=source&distro=stonkingOther threatsAffected
  • 1.18.10+dfsg-3 – 1.19.4+dfsg-1
4 affected builds
Fixed in–
Ubuntu 26.04 LTSruby-nokogiripkg:deb/ubuntu/ruby-nokogiri?arch=source&distro=resoluteOther threatsAffected
  • =1.18.2+dfsg-1build1
  • =1.18.10+dfsg-2
  • =1.18.10+dfsg-3
Fixed in–
Ubuntu 24.04 LTSruby-nokogiripkg:deb/ubuntu/ruby-nokogiri?arch=source&distro=nobleOther threatsAffected
  • =1.14.3+dfsg-2
  • =1.16.2+dfsg-1
  • =1.16.2+dfsg-1build1
Fixed in–
Ubuntu Pro 22.04 LTSruby-nokogiripkg:deb/ubuntu/ruby-nokogiri?arch=source&distro=esm-apps/jammyOther threatsAffected
  • 1.11.1+dfsg-2ubuntu1 – 1.13.1+dfsg-2ubuntu0.1~esm1
5 affected builds
Fixed in–
Ubuntu Pro 20.04 LTSruby-nokogiripkg:deb/ubuntu/ruby-nokogiri?arch=source&distro=esm-apps/focalOther threatsAffected
  • 1.10.3+dfsg1-2 – 1.10.7+dfsg1-2ubuntu0.1~esm2
6 affected builds
Fixed in–
Ubuntu 18.04 LTSruby-nokogiripkg:deb/ubuntu/ruby-nokogiri?arch=source&distro=bionicOther threatsAffected
  • 1.8.0-1 – 1.8.2-1ubuntu0.1
5 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade Nokogiri to version 1.19.5 or later where this issue is fixed. Alternatively, use the parse_noscript_content_as_text: true option to avoid the vulnerable default behavior. No other specific actions are required if these mitigations are applied.

Description

Nokogiri versions from 1.12.0 up to 1.19.5 on CRuby and TruffleRuby include a Nokogiri::HTML5 serializer that fails to escape text inside noscript elements and angle brackets inside attribute values. This flaw can lead to mutation cross-site scripting (mXSS) when untrusted HTML containing noscript elements is sanitized with default parsing options and rendered in scripting-enabled browsers. JRuby is not affected. The issue is fixed in version 1.19.5.

References

Community reviews

Loading reviews…