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

- Priority: **Routine**
- Reason: Not severe (CVSS 2.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-10 · Modified: 2026-11-13
- Aliases: GHSA-4p39-36wj-23h4, CGA-77rw-5jhx-8g9w, CGA-jqcp-7gjr-29p2, CGA-6x73-cc96-pm8x, DEBIAN-CVE-2026-126063, CGA-3mgm-8427-vf24, CGA-6c29-jwwj-66g2, CGA-7gp5-crp7-w4cj, CGA-8pfp-g5p3-pw8f, CGA-rpx4-559r-65vc, CGA-xj3c-5p97-xqm5, CGA-2gxp-mwcr-r78g, CGA-45qq-4c24-rrhj, CGA-5j59-v5mf-x9w3, CGA-5x67-vjp7-j7m3, CGA-67r3-3f43-xcqw, CGA-6fvm-cg62-wvp9, CGA-86vq-2gv7-frv3, CGA-9fpp-7p8w-gvg9, CGA-gh7x-4395-mmw6, CGA-gq27-vhmf-4cfg, CGA-h4f6-ffq9-jmw4, CGA-h5jj-m6w5-rrq6, CGA-jfxr-vg2x-h23h, CGA-mw46-2r42-852c, CGA-pgpf-rm4j-96m6, CGA-pgwm-q5m2-mpmp, CGA-ph87-r2m7-3hqm, CGA-vq9p-8g6w-8r7c, CGA-vxxc-c6hw-6vm6, CGA-76hx-mpc7-pwf4, CGA-qmqq-wpmj-gjfm, CGA-25xp-88qc-9pxc, CGA-383p-wxjg-727g, CGA-3rfw-vvqf-9pqp, CGA-4jvj-fg5q-v28c, CGA-5w59-q95m-74fq, CGA-7wg7-6pgc-52r8, CGA-8vvx-48pr-699x, CGA-9q2x-rxg7-hj7m, CGA-9r9h-4v6q-9g2r, CGA-fw8m-jvq3-q286, CGA-gp7j-mhxv-v274, CGA-hrww-qxpf-8c8x, CGA-jrg8-6q79-2v92, CGA-mvr6-2vrx-8r26, CGA-mvr6-5g7q-3vvr, CGA-rxh9-m2rm-2h5f, CGA-vpg2-8f54-8hxj, CGA-969h-gh95-c2j7, CGA-69f6-cwvf-hwxh, CGA-mxm4-r8q9-78mm, UBUNTU-CVE-2026-126063, CGA-9373-rmcp-96ff, CGA-99cg-4846-mfvj, CGA-jm76-3v3w-6jc4, CGA-p5wh-x2jx-x8mp, CGA-x9pp-6m56-32m3, CGA-j773-w3wg-xrq6, CGA-93rj-h682-h332, CGA-gc5c-45c5-4p75, CGA-qhf4-5p27-jj6f, CGA-j8fh-w3fc-c5hc, ALPINE-CVE-2026-126063
- Record: https://cvemate.com/vulnerability/CVE-2026-126063 · JSON: https://cvemate.com/vulnerability/CVE-2026-126063/json

## Description

```text
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.
```

## Signals

- CVSS: 2.3 low (v4.0, CVE.org) 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
- EPSS: 0.553%, percentile 47.67%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 45)

- alpine ruby-nokogiri (Alpine Linux): \< 1.19.7-r0
- chainguard commercial-gitlab-rails-ee-fips-19.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-19.2 (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.19 (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.19-iamguarded-compat (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.19-with-output-opensearch (Chainguard): All versions (No fix recorded)
- chainguard logstash-9.3 (Chainguard): All versions (No fix recorded)
- chainguard logstash-9.3-iamguarded-compat (Chainguard): All versions (No fix recorded)
- chainguard logstash-9.4 (Chainguard): All versions (No fix recorded) \| \< 9.4.9-r1
- chainguard logstash-9.4-iamguarded-compat (Chainguard): All versions (No fix recorded) \| \< 9.4.9-r1
- chainguard logstash-9.5 (Chainguard): All versions (No fix recorded) \| \< 9.5.6-r6
- chainguard logstash-9.5-iamguarded-compat (Chainguard): All versions (No fix recorded) \| \< 9.5.6-r6

## References

- <https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-4p39-36wj-23h4>
- <https://github.com/sparklemotion/nokogiri/pull/3752>
- <https://github.com/sparklemotion/nokogiri/commit/3e84df6ff7ab4d78f446e3a415430bd69a055d32>
- <https://github.com/sparklemotion/nokogiri/commit/c6c0bffbdcd194694995acafeeed27326b0805f8>
- <https://github.com/sparklemotion/nokogiri/releases/tag/v1.19.5>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/GHSA-4p39-36wj-23h4.yml>
- <https://github.com/sparklemotion/nokogiri>
- <https://security-tracker.debian.org/tracker/CVE-2026-126063>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126063.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126063>
- <https://ubuntu.com/security/CVE-2026-126063>
- <https://www.cve.org/CVERecord?id=CVE-2026-126063>
- <https://security.alpinelinux.org/vuln/CVE-2026-126063>

---

Data as of 2026-12-05T04:12:59.714Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
