CVE-2024-32463: Cross-site Scripting (XSS) possible due to improper sanitisation of `href` attributes on `<a>` tags
7.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.34385%
CWE
Published
4/17/2024
Updated
4/19/2024
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| phlex | rubygems | = 1.10.0 | 1.10.1 |
| phlex | rubygems | >= 1.9.0, < 1.9.2 | 1.9.2 |
| phlex | rubygems | >= 1.8.0, < 1.8.3 | 1.8.3 |
| phlex | rubygems | >= 1.7.0, < 1.7.2 | 1.7.2 |
| phlex | rubygems | >= 1.6.0, < 1.6.3 | 1.6.3 |
| phlex | rubygems | >= 1.5.0, < 1.5.3 | 1.5.3 |
| phlex | rubygems | < 1.4.2 | 1.4.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the attribute sanitization logic in attributes method shown in the commit diff. The patched line (-382) specifically modifies the 'href' attribute validation to first normalize the input by removing tabs/newlines before checking for 'javascript:'. The test cases added in naughty_business.rb demonstrate multiple bypass scenarios that this function previously failed to catch. This function is directly responsible for XSS protection in attribute values, making it the clear vulnerable entry point.