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

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.81%, higher than 54% of CVEs (2026-11-30)
- Published: 2024-04-17T00:20:23.000Z
- Modified: 2026-09-10T03:50:11.506Z
- Also known as: GHSA-g7xq-xv8c-h98c
- Weaknesses: CWE-79, CWE-87
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

phlex is an open source framework for building object-oriented views in Ruby. There is a potential cross-site scripting (XSS) vulnerability that can be exploited via maliciously crafted user data. The 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:`. This vulnerability is fixed in 1.10.1, 1.9.2, 1.8.3, 1.7.2, 1.6.3, 1.5.3, and 1.4.2. Configuring a Content Security Policy that does not allow `unsafe-inline` would effectively prevent this vulnerability from being exploited.

(As written by CVE List.)

## Affected

- phlex-ruby phlex: >= 1.10.0, < 1.10.1; >= 1.9.0, < 1.9.2; >= 1.8.0, < 1.8.3; >= 1.7.0, < 1.7.2; >= 1.6.0, < 1.6.3; >= 1.5.0, < 1.5.3; >= 1.4.0, < 1.4.2
- ruby fileutils: 1.0.0
- phlex (RubyGems): from 1.10.0 before 1.10.1; from 1.9.0 before 1.9.2; from 1.8.0 before 1.8.3; from 1.7.0 before 1.7.2; from 1.6.0 before 1.6.3; from 1.5.0 before 1.5.3; before 1.4.2

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`

## References

- <https://github.com/phlex-ruby/phlex/security/advisories/GHSA-g7xq-xv8c-h98c> (web)
- <https://github.com/phlex-ruby/phlex/commit/9e3f5b980655817993682e409cbda72956d865cb> (web)
- <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy> (web)
- <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy#unsafe-inline> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-32463> (advisory)
- <https://github.com/phlex-ruby/phlex> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/phlex/CVE-2024-32463.yml> (web)

## Sources

- CVE List: [CVE-2024-32463](https://www.cve.org/CVERecord?id=CVE-2024-32463), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-g7xq-xv8c-h98c](https://github.com/advisories/GHSA-g7xq-xv8c-h98c), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-32463](https://nvd.nist.gov/vuln/detail/CVE-2024-32463), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-32463 · Whole record: https://cve.day/CVE-2024-32463.json · Rebuilt by cve.day 2026-11-25T22:58:39.415Z
