Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. loofah
  4. ›
  5. GHSA-8whx-365g-h9vv

GHSA-8whx-365g-h9vv: Loofah `allowed_uri?` does not detect `javascript:` URIs split by named whitespace character references

July 21, 2026

Loofah::HTML5::Scrub.allowed_uri? does not correctly reject javascript: URIs when the scheme is split or prefixed by the HTML5 named character references 	 (tab) or 
 (line feed).

References

  • github.com/advisories/GHSA-8whx-365g-h9vv
  • github.com/flavorjones/loofah/commit/5e91af861e3cdab47b91dd0b81f3afdfd13a5e19
  • github.com/flavorjones/loofah/releases/tag/v2.25.2
  • github.com/flavorjones/loofah/security/advisories/GHSA-8whx-365g-h9vv

Code Behaviors & Features

Detect and mitigate GHSA-8whx-365g-h9vv 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.2

Fixed versions

  • 2.25.2

Solution

Upgrade to version 2.25.2 or above.

Impact 4.2 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-184: Incomplete List of Disallowed Inputs

Source file

gem/loofah/GHSA-8whx-365g-h9vv.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 08 Aug 2026 00:19:12 +0000.