{"answers":{"affected":"14 open source packages ship an affected version, including phlex.","exploited":"There is no known exploitation of CVE-2024-32463 in the wild and no public exploit code.","fix":"Upgrade phlex to a fixed version for your release line: 1.4.2, 1.10.1, 1.5.3 or 1.6.3.","what":"CVE-2024-32463 is a high-severity cross-site scripting vulnerability in phlex-ruby phlex, published on 17 Apr 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-32463 and fix it if it is affected.\n\nWhat it is: CVE-2024-32463 is a high-severity cross-site scripting vulnerability in phlex-ruby phlex, published on 17 Apr 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-32463 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- phlex (RubyGems): affected all versions; fixed in 1.4.2\n- phlex (RubyGems): affected all versions; fixed in 1.4.2\n- phlex (RubyGems): affected from 1.10.0; fixed in 1.10.1\n- phlex (RubyGems): affected from 1.10.0; fixed in 1.10.1\n- phlex (RubyGems): affected from 1.5.0; fixed in 1.5.3\n- phlex (RubyGems): affected from 1.5.0; fixed in 1.5.3\n- phlex (RubyGems): affected from 1.6.0; fixed in 1.6.3\n- phlex (RubyGems): affected from 1.6.0; fixed in 1.6.3\n- phlex (RubyGems): affected from 1.7.0; fixed in 1.7.2\n- phlex (RubyGems): affected from 1.7.0; fixed in 1.7.2\n- phlex (RubyGems): affected from 1.8.0; fixed in 1.8.3\n- phlex (RubyGems): affected from 1.8.0; fixed in 1.8.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-32463/ (Markdown: https://insights.sbomify.com/CVE-2024-32463/index.md)","id":"CVE-2024-32463","markdown":"https://insights.sbomify.com/CVE-2024-32463/index.md","name":"CVE-2024-32463","record":{"aliases":["GHSA-g7xq-xv8c-h98c"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby view framework","requires_auth":"none","summary":"An XSS vulnerability in the Phlex Ruby framework allows attackers to execute scripts via bypassed href sanitization, requiring an upgrade to patched versions.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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 `\u003ca\u003e` 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.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"phlex makes Cross-site Scripting (XSS) possible due to improper sanitisation of `href` attributes on `\u003ca\u003e` tags","id":"CVE-2024-32463","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":14,"n_references":4,"next":{"headline":"ActionText ContentAttachment can Contain Unsanitized HTML","id":"CVE-2024-32464"},"packages":[{"ecosystem":"RubyGems","fixed":["1.4.2"],"introduced":["0"],"last_affected":[],"package":"phlex","purl":null,"source":"GHSA-g7xq-xv8c-h98c"},{"ecosystem":"RubyGems","fixed":["1.4.2"],"introduced":["0"],"last_affected":[],"package":"phlex","purl":"pkg:gem/phlex","source":"GHSA-g7xq-xv8c-h98c"},{"ecosystem":"RubyGems","fixed":["1.10.1"],"introduced":["1.10.0"],"last_affected":[],"package":"phlex","purl":null,"source":"GHSA-g7xq-xv8c-h98c"},{"ecosystem":"RubyGems","fixed":["1.10.1"],"introduced":["1.10.0"],"last_affected":[],"package":"phlex","purl":"pkg:gem/phlex","source":"GHSA-g7xq-xv8c-h98c"},{"ecosystem":"RubyGems","fixed":["1.5.3"],"introduced":["1.5.0"],"last_affected":[],"package":"phlex","purl":null,"source":"GHSA-g7xq-xv8c-h98c"},{"ecosystem":"RubyGems","fixed":["1.5.3"],"introduced":["1.5.0"],"last_affected":[],"package":"phlex","purl":"pkg:gem/phlex","source":"GHSA-g7xq-xv8c-h98c"},{"ecosystem":"RubyGems","fixed":["1.6.3"],"introduced":["1.6.0"],"last_affected":[],"package":"phlex","purl":null,"source":"GHSA-g7xq-xv8c-h98c"},{"ecosystem":"RubyGems","fixed":["1.6.3"],"introduced":["1.6.0"],"last_affected":[],"package":"phlex","purl":"pkg:gem/phlex","source":"GHSA-g7xq-xv8c-h98c"},{"ecosystem":"RubyGems","fixed":["1.7.2"],"introduced":["1.7.0"],"last_affected":[],"package":"phlex","purl":null,"source":"GHSA-g7xq-xv8c-h98c"},{"ecosystem":"RubyGems","fixed":["1.7.2"],"introduced":["1.7.0"],"last_affected":[],"package":"phlex","purl":"pkg:gem/phlex","source":"GHSA-g7xq-xv8c-h98c"},{"ecosystem":"RubyGems","fixed":["1.8.3"],"introduced":["1.8.0"],"last_affected":[],"package":"phlex","purl":null,"source":"GHSA-g7xq-xv8c-h98c"},{"ecosystem":"RubyGems","fixed":["1.8.3"],"introduced":["1.8.0"],"last_affected":[],"package":"phlex","purl":"pkg:gem/phlex","source":"GHSA-g7xq-xv8c-h98c"},{"ecosystem":"RubyGems","fixed":["1.9.2"],"introduced":["1.9.0"],"last_affected":[],"package":"phlex","purl":null,"source":"GHSA-g7xq-xv8c-h98c"},{"ecosystem":"RubyGems","fixed":["1.9.2"],"introduced":["1.9.0"],"last_affected":[],"package":"phlex","purl":"pkg:gem/phlex","source":"GHSA-g7xq-xv8c-h98c"}],"prev":{"headline":"Flatpak vulnerable to a sandbox escape via RequestBackground portal due to bad argument parsing","id":"CVE-2024-32462"},"products":["phlex"],"published":"2024-04-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["phlex-ruby"]},"summary":"An XSS vulnerability in the Phlex Ruby framework allows attackers to execute scripts via bypassed href sanitization, requiring an upgrade to patched versions.","url":"https://insights.sbomify.com/CVE-2024-32463/"}