Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:gem/phlex@1.2.2
purl pkg:gem/phlex@1.2.2
Next non-vulnerable version 1.11.1
Latest non-vulnerable version 2.4.1
Risk 4.0
Vulnerabilities affecting this package (4)
Vulnerability Summary Fixed by
VCID-8pe7-mz33-t7a9
Aliases:
CVE-2024-32463
GHSA-g7xq-xv8c-h98c
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.
1.4.2
Affected by 2 other vulnerabilities.
1.5.3
Affected by 2 other vulnerabilities.
1.6.3
Affected by 2 other vulnerabilities.
1.7.2
Affected by 2 other vulnerabilities.
1.8.3
Affected by 2 other vulnerabilities.
1.9.2
Affected by 2 other vulnerabilities.
1.10.1
Affected by 2 other vulnerabilities.
VCID-br68-6fft-8ber
Aliases:
GHSA-w67g-2h6v-vjgq
Phlex XSS protection bypass via attribute splatting, dynamic tags, and href values
1.11.1
Affected by 0 other vulnerabilities.
2.0.2
Affected by 1 other vulnerability.
2.1.3
Affected by 0 other vulnerabilities.
2.2.2
Affected by 0 other vulnerabilities.
2.3.2
Affected by 0 other vulnerabilities.
2.4.0.beta1
Affected by 1 other vulnerability.
2.4.1
Affected by 0 other vulnerabilities.
VCID-jgcw-4xwt-9bdy
Aliases:
CVE-2024-32970
GHSA-9p57-h987-4vgx
Phlex is a framework for building object-oriented views in Ruby. In affected versions there is a potential cross-site scripting (XSS) vulnerability that can be exploited via maliciously crafted user data. Since the last two vulnerabilities https://github.com/phlex-ruby/phlex/security/advisories/GHSA-242p-4v39-2v8g and https://github.com/phlex-ruby/phlex/security/advisories/GHSA-g7xq-xv8c-h98c, we have invested in extensive browser tests. It was these new tests that helped us uncover these issues. As of now the project exercises every possible attack vector the developers can think of — including enumerating every ASCII character, and we run these tests in Chrome, Firefox and Safari. Additionally, we test against a list of 6613 known XSS payloads (see: payloadbox/xss-payload-list). The reason these issues were not detected before is the escapes were working as designed. However, their design didn't take into account just how recklessly permissive browsers are when it comes to executing unsafe JavaScript via HTML attributes. 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 or SVG 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 minor versions released in the last year. Users are advised to upgrade. Users unable to upgrade should configure a Content Security Policy that does not allow `unsafe-inline` which would effectively prevent this vulnerability from being exploited. Users who upgrade are also advised to configure a Content Security Policy header that does not allow `unsafe-inline`.
1.9.3
Affected by 2 other vulnerabilities.
1.10.2
Affected by 2 other vulnerabilities.
VCID-ktd3-z3en-ukc7
Aliases:
CVE-2024-28199
GHSA-242p-4v39-2v8g
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`.
1.3.3
Affected by 4 other vulnerabilities.
1.4.1
Affected by 4 other vulnerabilities.
1.5.2
Affected by 4 other vulnerabilities.
1.6.2
Affected by 4 other vulnerabilities.
1.7.1
Affected by 4 other vulnerabilities.
1.8.2
Affected by 4 other vulnerabilities.
1.9.1
Affected by 4 other vulnerabilities.
Vulnerabilities fixed by this package (1)
Vulnerability Summary Aliases
VCID-ktd3-z3en-ukc7 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`. CVE-2024-28199
GHSA-242p-4v39-2v8g

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-13T09:27:25.629282+00:00 Ruby Importer Affected by VCID-br68-6fft-8ber https://github.com/rubysec/ruby-advisory-db/blob/master/gems/phlex/GHSA-w67g-2h6v-vjgq.yml 38.6.0
2026-06-13T09:24:36.713086+00:00 Ruby Importer Affected by VCID-jgcw-4xwt-9bdy https://github.com/rubysec/ruby-advisory-db/blob/master/gems/phlex/CVE-2024-32970.yml 38.6.0
2026-06-13T09:24:34.645321+00:00 Ruby Importer Affected by VCID-8pe7-mz33-t7a9 https://github.com/rubysec/ruby-advisory-db/blob/master/gems/phlex/CVE-2024-32463.yml 38.6.0
2026-06-13T09:24:30.296663+00:00 Ruby Importer Fixing VCID-ktd3-z3en-ukc7 https://github.com/rubysec/ruby-advisory-db/blob/master/gems/phlex/CVE-2024-28199.yml 38.6.0
2026-06-13T09:24:29.992859+00:00 Ruby Importer Affected by VCID-ktd3-z3en-ukc7 https://github.com/rubysec/ruby-advisory-db/blob/master/gems/phlex/CVE-2024-28199.yml 38.6.0
2026-06-12T20:57:09.539550+00:00 GitLab Importer Affected by VCID-br68-6fft-8ber https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/phlex/GHSA-w67g-2h6v-vjgq.yml 38.6.0
2026-06-12T19:26:46.945549+00:00 GitLab Importer Affected by VCID-jgcw-4xwt-9bdy https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/phlex/CVE-2024-32970.yml 38.6.0
2026-06-12T19:25:56.451837+00:00 GitLab Importer Affected by VCID-8pe7-mz33-t7a9 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/phlex/CVE-2024-32463.yml 38.6.0
2026-06-12T15:48:17.779213+00:00 GitLab Importer Fixing VCID-ktd3-z3en-ukc7 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/phlex/CVE-2024-28199.yml 38.6.0
2026-06-12T07:43:04.350747+00:00 GithubOSV Importer Fixing VCID-ktd3-z3en-ukc7 https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-242p-4v39-2v8g/GHSA-242p-4v39-2v8g.json 38.6.0
2026-06-11T20:34:08.874537+00:00 GHSA Importer Fixing VCID-ktd3-z3en-ukc7 https://github.com/advisories/GHSA-242p-4v39-2v8g 38.6.0