# CVE-2024-28199: Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex

Source: https://junglewise.ai/threats/cve-2024-28199-cross-site-scripting-xss-possible-with-maliciously-formed-html  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-03-12  
License: CC BY 4.0 with a link back

CVE-2024-28199 · Severity: low · CVSS 3.1 · Published 2024-03-12

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

Technologies: [phlex (RubyGems)](https://junglewise.ai/threats/technologies/phlex). Vendors: [RubyGems](https://junglewise.ai/threats/vendors/rubygems).

## Quick answers

**Is CVE-2024-28199 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-28199 being exploited in the wild.

**How severe is CVE-2024-28199?** Low severity, with a CVSS score of 3.1, published 12 March 2024.

**Which products and versions are affected?** phlex (RubyGems) ECOSYSTEM:introduced=1.9.0,fixed=1.9.1.

**Is there a fix for CVE-2024-28199?** Yes. phlex (RubyGems): upgrade to 1.9.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-28199?** Check whether you run phlex (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- phlex (RubyGems): upgrade to 1.9.1 or later

  ```sh
  bundle update phlex
  ```


## Affected products

- phlex (RubyGems) ECOSYSTEM:introduced=1.9.0,fixed=1.9.1

## Identifiers

- CVE-2024-28199
- GHSA-242p-4v39-2v8g

## Related threats

- [Phlex XSS protection bypass via attribute splatting, dynamic tags, and href values](https://junglewise.ai/threats/phlex-xss-protection-bypass-via-attribute-splatting-dynamic-tags-and-93d3a918)
- [Phlex vulnerable to Cross-site Scripting (XSS) via maliciously formed HTML attribute names and values](https://junglewise.ai/threats/cve-2024-32970-phlex-vulnerable-to-cross-site-scripting-xss-via-maliciously)
- [Cross-site Scripting (XSS) possible due to improper sanitisation of `href` attributes on `<a>` tags](https://junglewise.ai/threats/cve-2024-32463-cross-site-scripting-xss-possible-due-to-improper-sanitisation-of)
