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


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.3% (25th 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-22840494
  • published24 Nov 2026
  • disclosed12 Nov 2026
  • creditNotAFlightRisk

Introduced: 12 Nov 2026

NewCVE-2026-126207  (opens in a new tab)
CWE-180  (opens in a new tab)
CWE-184  (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 scrub_css function in the HTML5 CSS scrubber. An attacker can make a viewer’s browser fetch an attacker-chosen URL by supplying HTML with a style attribute that uses CSS escapes to hide url() from the scrubber. The request exposes the viewer’s IP address, user agent, and access timing, and can reach hosts accessible from the viewer’s network.

Notes

  • At the HTML sanitization and display step, the affected deployment is an application that sanitizes user-supplied HTML with Loofah’s default allowlist and displays it to other people.
  • At the impact step, no script survives sanitization and the attacker cannot read the fetched response; the impact is limited to the browser’s request and its associated metadata or network reachability.

CVSS Base Scores

version 4.0
version 3.1