Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. phlex
  4. ›
  5. CVE-2024-32463

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

April 17, 2024 (updated April 19, 2024)

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:.

References

  • developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
  • developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
  • github.com/advisories/GHSA-g7xq-xv8c-h98c
  • github.com/phlex-ruby/phlex
  • github.com/phlex-ruby/phlex/commit/9e3f5b980655817993682e409cbda72956d865cb
  • github.com/phlex-ruby/phlex/security/advisories/GHSA-g7xq-xv8c-h98c
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/phlex/CVE-2024-32463.yml
  • nvd.nist.gov/vuln/detail/CVE-2024-32463

Code Behaviors & Features

Detect and mitigate CVE-2024-32463 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 before 1.4.2, all versions starting from 1.5.0 before 1.5.3, all versions starting from 1.6.0 before 1.6.3, all versions starting from 1.7.0 before 1.7.2, all versions starting from 1.8.0 before 1.8.3, all versions starting from 1.9.0 before 1.9.2, all versions starting from 1.10.0 before 1.10.1, version 1.10.0

Fixed versions

  • 1.10.1
  • 1.9.2
  • 1.8.3
  • 1.7.2
  • 1.6.3
  • 1.5.3
  • 1.4.2

Solution

Upgrade to versions 1.10.1, 1.4.2, 1.5.3, 1.6.3, 1.7.2, 1.8.3, 1.9.2 or above.

Impact 7.1 HIGH

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

Learn more about CVSS

Weakness

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

Source file

gem/phlex/CVE-2024-32463.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:37 +0000.