Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. loofah
  4. ›
  5. GHSA-46fp-8f5p-pf2m

GHSA-46fp-8f5p-pf2m: Improper detection of disallowed URIs by Loofah `allowed_uri?`

March 18, 2026

Loofah::HTML5::Scrub.allowed_uri? does not correctly reject javascript: URIs when the scheme is split by HTML entity-encoded control characters such as 
 (carriage return), 
 (line feed), or 	 (tab).

References

  • github.com/advisories/GHSA-46fp-8f5p-pf2m
  • github.com/flavorjones/loofah
  • github.com/flavorjones/loofah/security/advisories/GHSA-46fp-8f5p-pf2m

Code Behaviors & Features

Detect and mitigate GHSA-46fp-8f5p-pf2m with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.25.0 before 2.25.1, version 2.25.0

Fixed versions

  • 2.25.1

Solution

Upgrade to version 2.25.1 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

gem/loofah/GHSA-46fp-8f5p-pf2m.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:19:15 +0000.