CVE-2026-25500: Ruby Html Unprefixed Url Xss

An HTML tag is rendered with an interpolated URL attribute (e.g., href, src) without a safe relative path prefix (like `./` or `/`). If this URL is constructed from user-supplied input or a directory filename, an attacker can supply a filename starting with a `javascript:` or `data:` scheme to execute arbitrary code (XSS). Enforce safe relative URLs by prepe

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Ruby
greprules fetch cve-2026-25500-ruby-html-unprefixed-url-xss --engine opengrep

Description

An HTML tag is rendered with an interpolated URL attribute (e.g., href, src) without a safe relative path prefix (like `./` or `/`). If this URL is constructed from user-supplied input or a directory filename, an attacker can supply a filename starting with a `javascript:` or `data:` scheme to execute arbitrary code (XSS). Enforce safe relative URLs by prepe