Read the docs
TI-2024-18775 Aliases CVE-2024-28199GHSA-242p-4v39-2v8g

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

Priority LOW 32CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
High · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

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. This was due to improper case-sensitivity in the code that was meant to prevent these attacks. 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. If you splat user-provided attributes when rendering any HTML tag, malicious event attributes could be included in the output, executing JavaScript when the events are triggered by another user. Patches are available on RubyGems for all 1.x minor versions. Users are advised to upgrade. Users unable to upgrade should consider configuring a content security policy that does not allow `unsafe-inline`.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00604 49th percentileScored 2026-11-07
Fix Fixed phlex (phlex-ruby): 1.8.2, 1.6.2, 1.5.2 +3phlex (RubyGems): 1.9.1, 1.8.2, 1.7.1 +7

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
phlex-rubyphlex= 1.9.0; 1.8.0 to before 1.8.2; = 1.7.0; 1.6.0 to before 1.6.2; 1.5.0 to before 1.5.2; = 1.4.0; 1.3.0 to before 1.3.3; 1.2.0 to before 1.2.2; = 1.1.0; before 1.0.11.8.2, 1.6.2, 1.5.2, 1.3.3, 1.2.2, 1.0.1Patch availableCNA
—phlex (RubyGems)1.9.0 to before 1.9.11.9.1Patch availableGHSA-242p-4v39-2v8g
—phlex (RubyGems)1.8.0 to before 1.8.21.8.2Patch availableGHSA-242p-4v39-2v8g
—phlex (RubyGems)1.7.0 to before 1.7.11.7.1Patch availableGHSA-242p-4v39-2v8g
—phlex (RubyGems)1.6.0 to before 1.6.21.6.2Patch availableGHSA-242p-4v39-2v8g
—phlex (RubyGems)1.5.0 to before 1.5.21.5.2Patch availableGHSA-242p-4v39-2v8g
—phlex (RubyGems)1.4.0 to before 1.4.11.4.1Patch availableGHSA-242p-4v39-2v8g
—phlex (RubyGems)1.3.0 to before 1.3.31.3.3Patch availableGHSA-242p-4v39-2v8g
—phlex (RubyGems)1.2.0 to before 1.2.21.2.2Patch availableGHSA-242p-4v39-2v8g
—phlex (RubyGems)1.1.0 to before 1.1.11.1.1Patch availableGHSA-242p-4v39-2v8g
—phlex (RubyGems)before 1.0.11.0.1Patch availableGHSA-242p-4v39-2v8g
  • phlex Vendorphlex-ruby Affected = 1.9.0; 1.8.0 to before 1.8.2; = 1.7.0; 1.6.0 to before 1.6.2; 1.5.0 to before 1.5.2; = 1.4.0; 1.3.0 to before 1.3.3; 1.2.0 to before 1.2.2; = 1.1.0; before 1.0.1 Fixed in 1.8.2, 1.6.2, 1.5.2, 1.3.3, 1.2.2, 1.0.1 Patch available CNA
  • phlex (RubyGems) Vendor— Affected 1.9.0 to before 1.9.1 Fixed in 1.9.1 Patch available GHSA-242p-4v39-2v8g
  • phlex (RubyGems) Vendor— Affected 1.8.0 to before 1.8.2 Fixed in 1.8.2 Patch available GHSA-242p-4v39-2v8g
  • phlex (RubyGems) Vendor— Affected 1.7.0 to before 1.7.1 Fixed in 1.7.1 Patch available GHSA-242p-4v39-2v8g
  • phlex (RubyGems) Vendor— Affected 1.6.0 to before 1.6.2 Fixed in 1.6.2 Patch available GHSA-242p-4v39-2v8g
  • phlex (RubyGems) Vendor— Affected 1.5.0 to before 1.5.2 Fixed in 1.5.2 Patch available GHSA-242p-4v39-2v8g
  • phlex (RubyGems) Vendor— Affected 1.4.0 to before 1.4.1 Fixed in 1.4.1 Patch available GHSA-242p-4v39-2v8g
  • phlex (RubyGems) Vendor— Affected 1.3.0 to before 1.3.3 Fixed in 1.3.3 Patch available GHSA-242p-4v39-2v8g
  • phlex (RubyGems) Vendor— Affected 1.2.0 to before 1.2.2 Fixed in 1.2.2 Patch available GHSA-242p-4v39-2v8g
  • phlex (RubyGems) Vendor— Affected 1.1.0 to before 1.1.1 Fixed in 1.1.1 Patch available GHSA-242p-4v39-2v8g
  • phlex (RubyGems) Vendor— Affected before 1.0.1 Fixed in 1.0.1 Patch available GHSA-242p-4v39-2v8g

CPE configurations NVD · 5

CPEVersionsRoleVendor
cpe:2.3:a:phlex:phlex:*:*:*:*:*:ruby:*:*before 1.0.1; 1.2.0 to before 1.2.2; 1.3.0 to before 1.3.3VulnerablePhlex
cpe:2.3:a:phlex:phlex:1.1.0:*:*:*:*:ruby:*:*1.1.0VulnerablePhlex
cpe:2.3:a:phlex:phlex:1.4.0:*:*:*:*:ruby:*:*1.4.0VulnerablePhlex
cpe:2.3:a:phlex:phlex:1.7.0:*:*:*:*:ruby:*:*1.7.0VulnerablePhlex
cpe:2.3:a:phlex:phlex:1.9.0:*:*:*:*:ruby:*:*1.9.0VulnerablePhlex
  • cpe:2.3:a:phlex:phlex:*:*:*:*:*:ruby:*:* Versions before 1.0.1; 1.2.0 to before 1.2.2; 1.3.0 to before 1.3.3 Vulnerable ·Phlex
  • cpe:2.3:a:phlex:phlex:1.1.0:*:*:*:*:ruby:*:* Versions 1.1.0 Vulnerable ·Phlex
  • cpe:2.3:a:phlex:phlex:1.4.0:*:*:*:*:ruby:*:* Versions 1.4.0 Vulnerable ·Phlex
  • cpe:2.3:a:phlex:phlex:1.7.0:*:*:*:*:ruby:*:* Versions 1.7.0 Vulnerable ·Phlex
  • cpe:2.3:a:phlex:phlex:1.9.0:*:*:*:*:ruby:*:* Versions 1.9.0 Vulnerable ·Phlex

Remediation

  • Fix · CNA phlex (phlex-ruby) Fixed in 1.8.2, 1.6.2, 1.5.2, 1.3.3, 1.2.2, 1.0.1
  • Fix · GHSA-242p-4v39-2v8g phlex (RubyGems) Fixed in 1.9.1 Advisory →
  • Fix · GHSA-242p-4v39-2v8g phlex (RubyGems) Fixed in 1.8.2 Advisory →
  • Fix · GHSA-242p-4v39-2v8g phlex (RubyGems) Fixed in 1.7.1 Advisory →
  • Fix · GHSA-242p-4v39-2v8g phlex (RubyGems) Fixed in 1.6.2 Advisory →
  • Fix · GHSA-242p-4v39-2v8g phlex (RubyGems) Fixed in 1.5.2 Advisory →
  • Fix · GHSA-242p-4v39-2v8g phlex (RubyGems) Fixed in 1.4.1 Advisory →
  • Fix · GHSA-242p-4v39-2v8g phlex (RubyGems) Fixed in 1.3.3 Advisory →
  • Fix · GHSA-242p-4v39-2v8g phlex (RubyGems) Fixed in 1.2.2 Advisory →
  • Fix · GHSA-242p-4v39-2v8g phlex (RubyGems) Fixed in 1.1.1 Advisory →
  • Fix · GHSA-242p-4v39-2v8g phlex (RubyGems) Fixed in 1.0.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-28199
  2. 2026-10-03 Alias added: GHSA-242p-4v39-2v8g

References

  • TI-2024-21836 Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex CVSS 3.1HIGH 7.1
  • TI-2024-21358 phlex makes Cross-site Scripting (XSS) possible due to improper sanitisation of `href` attributes on `<a>` tags CVSS 3.1HIGH 7.1

Sources