{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-40704 exists.","fix":"Apply the vendor's patch.","what":"CVE-2022-40704 is a medium-severity cross-site scripting vulnerability in phoronix-test-suite, published on 17 Jan 2023. 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-2022-40704 and fix it if it is affected.\n\nWhat it is: CVE-2022-40704 is a medium-severity cross-site scripting vulnerability in phoronix-test-suite, published on 17 Jan 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-40704 exists.\n\nAffected product: phoronix-test-suite. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2022-40704/ (Markdown: https://insights.sbomify.com/CVE-2022-40704/index.md)","id":"CVE-2022-40704","markdown":"https://insights.sbomify.com/CVE-2022-40704/index.md","name":"CVE-2022-40704","record":{"aliases":["GHSA-9447-mqqf-hxwj","MGASA-2023-0022","UBUNTU-CVE-2022-40704","openSUSE-SU-2024:12555-1"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Phoronix Test Suite","requires_auth":"none","summary":"An XSS vulnerability in Phoronix Test Suite allows attackers to inject malicious scripts, potentially compromising user sessions or data.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"phoronix_test_suite","vendor":"phoronix-media"}],"cvss":{"score":6.1,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"A XSS vulnerability was found in phoromatic_r_add_test_details.php in phoronix-test-suite.","ecosystems":["openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Cross-site scripting in phoronix-test-suite","id":"CVE-2022-40704","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2022"},"n_packages":1,"n_references":2,"next":{"headline":"Apache SOAP: XML External Entity Injection (XXE) allows unauthenticated users to read arbitrary files via HTTP","id":"CVE-2022-40705"},"packages":[{"ecosystem":"openSUSE:Tumbleweed","fixed":["10.8.4-3.1"],"introduced":["0"],"last_affected":[],"package":"phoronix-test-suite","purl":"pkg:rpm/opensuse/phoronix-test-suite\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12555-1"}],"prev":{"headline":"Auth bypass in Kardia App","id":"CVE-2022-40703"},"products":["phoronix-test-suite"],"published":"2023-01-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-04","vendors":["n/a"]},"summary":"An XSS vulnerability in Phoronix Test Suite allows attackers to inject malicious scripts, potentially compromising user sessions or data.","url":"https://insights.sbomify.com/CVE-2022-40704/"}