{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-32463","id":"CVE-2024-32463","title":"phlex makes Cross-site Scripting (XSS) possible due to improper sanitisation of `href` attributes on `<a>` tags","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 p","descriptionLong":"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.","published":"2024-04-17T15:29:14.463Z","updated":"2026-10-28T02:30:56.031029381Z","reserved":"2024-04-12T19:41:51.164Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["phlex-ruby phlex"],"affectedProducts":[{"vendor":"phlex-ruby","product":"phlex","defaultStatus":null,"versions":[{"version":">= 1.10.0, < 1.10.1","status":"affected"},{"version":">= 1.9.0, < 1.9.2","status":"affected"},{"version":">= 1.8.0, < 1.8.3","status":"affected"},{"version":">= 1.7.0, < 1.7.2","status":"affected"},{"version":">= 1.6.0, < 1.6.3","status":"affected"},{"version":">= 1.5.0, < 1.5.3","status":"affected"},{"version":">= 1.4.0, < 1.4.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"phlex","purl":"pkg:gem/phlex","ranges":[">=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.2"],"fixed":["1.10.1","1.9.2","1.8.3","1.7.2","1.6.3","1.5.3","1.4.2"],"advisory":"GHSA-g7xq-xv8c-h98c"}],"cwes":["CWE-79","CWE-87"],"aliases":["GHSA-g7xq-xv8c-h98c"],"references":[{"url":"https://github.com/phlex-ruby/phlex/security/advisories/GHSA-g7xq-xv8c-h98c","tags":["x_refsource_CONFIRM","x_transferred","advisory","web"]},{"url":"https://github.com/phlex-ruby/phlex/commit/9e3f5b980655817993682e409cbda72956d865cb","tags":["x_refsource_MISC","x_transferred","fix","web"]},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy#unsafe-inline","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32463.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32463","tags":["advisory"]},{"url":"https://github.com/phlex-ruby/phlex","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/phlex/CVE-2024-32463.yml","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00575,"epssPercentile":0.48259,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-32463","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32463","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-32463","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-g7xq-xv8c-h98c","ok":true,"note":"GHSA-g7xq-xv8c-h98c"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-32463","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}