CVE-2026-126063Sparklemotion Nokogiri cross-site scripting (XSS)
CVSS score
2.3
Low
CVSS 4.0 from github.com
Exploit probability (EPSS)
0.56%
0.56% chance of exploitation in the next 30 days, higher than 47.6% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running sparklemotion Nokogiri and compare its version with the affected versions.
Update to a fixed version
- Update Nokogiri to 1.19.5 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- Present
- Privileges required
- None
- User interaction
- Passive
- Confidentiality
- None
- Integrity
- None
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. 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
Affected products
| Affected products | Versions |
|---|---|
| sparklemotion Nokogiri | >= 1.12.0, < 1.19.5 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-126063 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.6% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-126063?
CVE-2026-126063 has a CVSS 4.0 base score of 2.3 (low).
Which versions are affected?
Sparklemotion Nokogiri (>= 1.12.0, < 1.19.5)
Is there a patch for CVE-2026-126063?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/sparklemotion/nokogiri/commit/3e84df6ff7ab4d78f446e3a415430bd69a055d32
- github.com/sparklemotion/nokogiri/commit/c6c0bffbdcd194694995acafeeed27326b0805f8
- github.com/sparklemotion/nokogiri/pull/3752
- github.com/sparklemotion/nokogiri/releases/tag/v1.19.5
- github.com/sparklemotion/nokogiri/security/advisories/GHSA-4p39-36wj-23h4
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.