p PatchFirst

CVE-2026-126063

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

CVSS 2.3 · Low · EPSS 0.6% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-nokogiri"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Stack: system · ruby

Affected products and versions

  • nokogiri

    Versions
    • >= 1.12.0, < 1.19.5: Affected

    No fix published

  • ruby-nokogiri Debian 12

    Versions
    • 1.13.10+dfsg-2
    • 1.14.2+dfsg-1
    • 1.14.3+dfsg-1
    • 1.14.3+dfsg-2
    • 1.15.4+dfsg-1
    • 1.16.0+dfsg-1
    All versions (18)
    • 1.16.0+dfsg-2
    • 1.16.2+dfsg-1
    • 1.16.4+dfsg-1
    • 1.17.2+dfsg-1~exp1
    • 1.18.10+dfsg-1
    • 1.18.10+dfsg-2
    • 1.18.10+dfsg-3
    • 1.18.2+dfsg-1
    • 1.19.1+dfsg-1
    • 1.19.3+dfsg-1
    • 1.19.4+dfsg-1
    • 1.19.7+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-nokogiri Debian 13

    Versions
    • 1.18.10+dfsg-1
    • 1.18.10+dfsg-2
    • 1.18.10+dfsg-3
    • 1.18.2+dfsg-1
    • 1.19.1+dfsg-1
    • 1.19.3+dfsg-1
    All versions (8)
    • 1.19.4+dfsg-1
    • 1.19.7+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-nokogiri Debian 14

    Versions
    • 1.18.10+dfsg-1
    • 1.18.10+dfsg-2
    • 1.18.10+dfsg-3
    • 1.18.2+dfsg-1
    • 1.19.1+dfsg-1
    • 1.19.3+dfsg-1
    All versions (8)
    • 1.19.4+dfsg-1
    • 1.19.7+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nokogiri RubyGems

    Versions
    • 1.12.0
    • 1.12.1
    • 1.12.2
    • 1.12.3
    • 1.12.4
    • 1.12.5
    All versions (62)
    • 1.13.0
    • 1.13.1
    • 1.13.10
    • 1.13.2
    • 1.13.3
    • 1.13.4
    • 1.13.5
    • 1.13.6
    • 1.13.7
    • 1.13.8
    • 1.13.9
    • 1.14.0
    • 1.14.0.rc1
    • 1.14.1
    • 1.14.2
    • 1.14.3
    • 1.14.4
    • 1.14.5
    • 1.15.0
    • 1.15.1
    • 1.15.2
    • 1.15.3
    • 1.15.4
    • 1.15.5
    • 1.15.6
    • 1.15.7
    • 1.16.0
    • 1.16.0.rc1
    • 1.16.1
    • 1.16.2
    • 1.16.3
    • 1.16.4
    • 1.16.5
    • 1.16.6
    • 1.16.7
    • 1.16.8
    • 1.17.0
    • 1.17.1
    • 1.17.2
    • 1.18.0
    • 1.18.0.rc1
    • 1.18.1
    • 1.18.10
    • 1.18.2
    • 1.18.3
    • 1.18.4
    • 1.18.5
    • 1.18.6
    • 1.18.7
    • 1.18.8
    • 1.18.9
    • 1.19.0
    • 1.19.1
    • 1.19.2
    • 1.19.3
    • 1.19.4
    Affected ranges
    • ECOSYSTEM: ≥ 1.12.0, < 1.19.5

    Update to 1.19.5

  • ruby-nokogiri Ubuntu Pro 14.04 LTS

    Versions
    • 1.5.9-2
    • 1.5.9-3
    • 1.6.0-1
    • 1.6.1+ds-1
    • 1.6.1+ds-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-nokogiri Ubuntu 16.04 LTS

    Versions
    • 1.6.6.2+ds-2build2
    • 1.6.6.3-1
    • 1.6.7-1
    • 1.6.7.1-1
    • 1.6.7.2-3
    • 1.6.7.2-3build1
    All versions (7)
    • 1.6.7.2-3ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-nokogiri Ubuntu 18.04 LTS

    Versions
    • 1.8.0-1
    • 1.8.1-1
    • 1.8.1-1build1
    • 1.8.2-1build1
    • 1.8.2-1ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-nokogiri Ubuntu Pro 20.04 LTS

    Versions
    • 1.10.3+dfsg1-2
    • 1.10.4+dfsg1-1
    • 1.10.7+dfsg1-1
    • 1.10.7+dfsg1-2
    • 1.10.7+dfsg1-2build1
    • 1.10.7+dfsg1-2ubuntu0.1~esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-nokogiri Ubuntu Pro 22.04 LTS

    Versions
    • 1.11.1+dfsg-2ubuntu1
    • 1.11.7+dfsg-3
    • 1.11.7+dfsg-3build1
    • 1.13.1+dfsg-2
    • 1.13.1+dfsg-2ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-nokogiri Ubuntu 24.04 LTS

    Versions
    • 1.14.3+dfsg-2
    • 1.16.2+dfsg-1
    • 1.16.2+dfsg-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-nokogiri Ubuntu 26.10

    Versions
    • 1.18.10+dfsg-3
    • 1.19.1+dfsg-1
    • 1.19.3+dfsg-1
    • 1.19.4+dfsg-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-nokogiri Ubuntu 26.04 LTS

    Versions
    • 1.18.2+dfsg-1build1
    • 1.18.10+dfsg-2
    • 1.18.10+dfsg-3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →