Incomplete List of Disallowed Inputs Affecting loofah package, versions <2.25.3


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.44% (40th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-LOOFAH-22840518
  • published24 Nov 2026
  • disclosed12 Nov 2026
  • creditngpestelos

Introduced: 12 Nov 2026

NewCVE-2026-126206  (opens in a new tab)
CWE-184  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade loofah to version 2.25.3 or higher.

Overview

loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri.

Affected versions of this package are vulnerable to Incomplete List of Disallowed Inputs via the allowed_uri? function in Loofah::HTML5::Scrub. An attacker can bypass validation by supplying an HTML-encoded data:text&sol;html,... URI, which the helper treats as malformed and allows as text/plain; when an application renders the approved value in a browser-interpreted URI attribute, the browser decodes &sol; and interprets the data as text/html, which can expose the user to script execution depending on the rendering context. This affects callers of the public string-level helper, not Loofah’s default sanitize() path.

CVSS Base Scores

version 4.0
version 3.1