SecurityContext

CVE-2026-126203: Loofah - Cross-Site Scripting

  • Cve: CVE-2026-126203
  • Name: Loofah - Cross-Site Scripting
  • Description: Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. From 2.21.0 until 2.25.3, Loofah's HTML5 APIs Loofah.html5_fragment, Loofah.html5_document, and the scrub_html5_* methods can emit sanitized output that a browser reparses as different markup when used with Nokogiri before 1.19.5, because those Nokogiri versions do not escape angle brackets in attribute values. MathML can place markup inside an allowed attribute so the reparsed output becomes live HTML. The :strip scrubber is affected in every browser, while :prune and :escape are affected in WebKit browsers. Loofah's HTML4 APIs, Loofah::Helpers.sanitize, :whitewash, rails-html-sanitizer's default configuration, and JRuby are not affected. This issue is fixed in version 2.25.3.
  • Impact: Attackers can execute arbitrary script in victims' browsers, potentially leading to session hijacking or data theft.
  • Remediation: Upgrade to version 2.25.3 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: none
  • Labels source: securitycontext
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00271
  • Epss percentile: 0.19359
  • Assignee: [email protected]
  • Published at: 2026-11-12T19:16:56Z
  • Age in days: 12
  • Modified at: 2026-11-12T22:09:39Z
  • Patch available: yes
  • References total: 7
  • Products total: 1
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-126203
  • Nvd status: awaiting_analysis
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/flavorjones/loofah/commit/7ba1e7b77e043fb7dc832ef746fcbf83137135e6
https://github.com/flavorjones/loofah/pull/324
https://github.com/flavorjones/loofah/releases/tag/v2.25.3
https://github.com/flavorjones/loofah/security/advisories/GHSA-h6v6-rg66-fqj4
https://github.com/sparklemotion/nokogiri/commit/635abc8d65c75d594ddf8957fbfbfd822c2c0dbd
https://github.com/sparklemotion/nokogiri/pull/3741
https://github.com/sparklemotion/nokogiri/releases/tag/v1.19.5

Products

ProductAffectedPlatform boundSourcesUrl
loofah_project:loofah>= 2.21.0, < 2.25.3nocna_alias_text/v1/products/loofah_project/loofah

Projects

RepositoryLink kindsIndexedUrl
sparklemotion/nokogiricommit, pull, releasesyes/v1/repositories/sparklemotion/nokogiri
flavorjones/loofahcommit, package, pull, releases, security_advisoryyes/v1/repositories/flavorjones/loofah

Index

  • Repositories: 123
  • Repositories high signal: 87
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts