Loading...
Skip to main content

CVE-2024-32463 — Vulnerability in phlex — CVE Details

HIGH

Cross-site Scripting (XSS) possible due to improper sanitisation of `href` attributes on `<a>` tags

Published April 17, 2024Updated September 10, 2026Source: osv

Summary

### Summary There is a potential cross-site scripting (XSS) vulnerability that can be exploited via maliciously crafted user data. Our filter to detect and prevent the use of the `javascript:` URL scheme in the `href` attribute of an `<a>` tag could be bypassed with tab `\t` or newline `\n` characters between the characters of the protocol, e.g. `java\tscript:`. ### Impact If you render an `<a>` tag with an `href` attribute set to a user-provided link, that link could potentially execute JavaScript when clicked by another user. ```ruby a(href: user_profile) { "Profile" } ``` ### Mitigation The best way to mitigate this vulnerability is to update to one of the following versions: - [1.10.1](https://rubygems.org/gems/phlex/versions/1.10.1) - [1.9.2](https://rubygems.org/gems/phlex/versions/1.9.2) - [1.8.3](https://rubygems.org/gems/phlex/versions/1.8.3) - [1.7.2](https://rubygems.org/gems/phlex/versions/1.7.2) - [1.6.3](https://rubygems.org/gems/phlex/versions/1.6.3) - [1.5.3](https://rubygems.org/gems/phlex/versions/1.5.3) - [1.4.2](https://rubygems.org/gems/phlex/versions/1.4.2) ### Workarounds Configuring a [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy) that does not allow [`unsafe-inline`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy#unsafe-inline) would effectively prevent this vulnerability from being exploited.

Advisory Timeline

  • First published April 17, 2024 (908 days ago).
  • Last revised September 10, 2026 — 876 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update phlex to 1.9.2 or later
gem install phlex -v 1.9.2
Bundler
Update phlex to 1.10.1 or later
gem install phlex -v 1.10.1
Bundler
Update phlex to 1.7.2 or later
gem install phlex -v 1.7.2
Bundler
Update phlex to 1.5.3 or later
gem install phlex -v 1.5.3
Bundler
Update phlex to 1.6.3 or later
gem install phlex -v 1.6.3
Bundler
Update phlex to 1.8.3 or later
gem install phlex -v 1.8.3
Bundler
Update phlex to 1.4.2 or later
gem install phlex -v 1.4.2

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (7)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
phlex
rubygems
1.9.0, 1.9.11.9.2
phlex
rubygems
1.10.01.10.1
phlex
rubygems
1.7.0, 1.7.11.7.2
phlex
rubygems
1.5.0, 1.5.1, 1.5.21.5.3
phlex
rubygems
1.6.0, 1.6.1, 1.6.21.6.3
phlex
rubygems
1.8.0, 1.8.1, 1.8.21.8.3
phlex
rubygems
0.1.0, 0.2.0, 0.2.1, 0.2.2 (+23 more)1.4.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

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

Frequently Asked Questions

What is CVE-2024-32463?
Cross-site Scripting (XSS) possible due to improper sanitisation of `href` attributes on `<a>` tags This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.1/10).
How do I check if my project is affected by CVE-2024-32463?
CVE-2024-32463 affects phlex. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-32463 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.1

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-g7xq-xv8c-h98c

Related CVEs

  • CVE-2024-28199
    HIGH

    Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex

  • CVE-2026-94462
    HIGH

    Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)

  • CVE-2024-32970
    HIGH

    Phlex vulnerable to Cross-site Scripting (XSS) via maliciously formed HTML attribute names and values

  • CVE-2026-77601
    HIGH

    OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting

  • GHSA-w67g-2h6v-vjgq
    HIGH

    Phlex XSS protection bypass via attribute splatting, dynamic tags, and href values

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies