CVE-2024-28199

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

Published Mar 11, 2024 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
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. 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`.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0782 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`.
Github GHSA Github GHSA GHSA-242p-4v39-2v8g Cross-site Scripting (XSS) possible with maliciously formed HTML attribute names and values in Phlex
History
Type Values Removed Values Added
First Time appeared Phlex
Phlex phlex
CPEs cpe:2.3:a:phlex:phlex:*:*:*:*:*:ruby:*:*
cpe:2.3:a:phlex:phlex:1.1.0:*:*:*:*:ruby:*:*
cpe:2.3:a:phlex:phlex:1.4.0:*:*:*:*:ruby:*:*
cpe:2.3:a:phlex:phlex:1.7.0:*:*:*:*:ruby:*:*
cpe:2.3:a:phlex:phlex:1.9.0:*:*:*:*:ruby:*:*
Vendors & Products Phlex
Phlex phlex
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 2, 2024, 12:48 AM
Reserved
Mar 6, 2024, 5:35 PM
Status
Analyzed
Published
Mar 11, 2024, 11:15 PM
Modified
Jun 17, 2026, 7:21 AM