Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. phlex
  4. ›
  5. GHSA-g7xq-xv8c-h98c

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

April 17, 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

  • 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

Code Behaviors & Features

Detect and mitigate GHSA-g7xq-xv8c-h98c 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-87: Improper Neutralization of Alternate XSS Syntax

Source file

gem/phlex/GHSA-g7xq-xv8c-h98c.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:15 +0000.