{"answers":{"affected":"2 open source packages ship an affected version, including phpservermon/phpservermon.","exploited":"There is no known exploitation of CVE-2024-5312 in the wild and no public exploit code.","fix":"Upgrade phpservermon/phpservermon to 3.3.0 or later.","what":"CVE-2024-5312 is a medium-severity cross-site scripting vulnerability in PHP Server Monitor, published on 24 May 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-5312 and fix it if it is affected.\n\nWhat it is: CVE-2024-5312 is a medium-severity cross-site scripting vulnerability in PHP Server Monitor, published on 24 May 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-5312 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- phpservermon/phpservermon (Packagist): affected all versions; fixed in 3.3.0\n- phpservermon/phpservermon (Packagist): affected all versions; fixed in 3.3.0\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-5312/ (Markdown: https://insights.sbomify.com/CVE-2024-5312/index.md)","id":"CVE-2024-5312","markdown":"https://insights.sbomify.com/CVE-2024-5312/index.md","name":"CVE-2024-5312","record":{"aliases":["GHSA-rq7f-j68f-mqh3"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP Server Monitor","requires_auth":"none","summary":"An attacker can execute arbitrary scripts in a victim's browser via a crafted URL, potentially stealing session details in PHP Server Monitor.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"INCIBE","cpe":[],"cvss":{"score":6.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"PHP Server Monitor, version 3.2.0, is vulnerable to an XSS via the /phpservermon-3.2.0/vendor/phpmailer/phpmailer/test_script/index.php page in all visible parameters. An attacker could create a specially crafted URL, send it to a victim and retrieve their session details.","ecosystems":["Packagist"],"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":"Cross-Site Scripting vulnerability in PHP Server Monitor","id":"CVE-2024-5312","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":2,"n_references":1,"next":{"headline":"Information disclosure in EVlink Home Smart","id":"CVE-2024-5313"},"packages":[{"ecosystem":"Packagist","fixed":["3.3.0"],"introduced":["0"],"last_affected":[],"package":"phpservermon/phpservermon","purl":null,"source":"GHSA-rq7f-j68f-mqh3"},{"ecosystem":"Packagist","fixed":["3.3.0"],"introduced":["0"],"last_affected":[],"package":"phpservermon/phpservermon","purl":"pkg:composer/phpservermon/phpservermon","source":"GHSA-rq7f-j68f-mqh3"}],"prev":{"headline":"DigiWin EasyFlow .NET - SQL Injection","id":"CVE-2024-5311"},"products":["PHP Server Monitor"],"published":"2024-05-24","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-01","vendors":["PHP Server Monitor"]},"summary":"An attacker can execute arbitrary scripts in a victim's browser via a crafted URL, potentially stealing session details in PHP Server Monitor.","url":"https://insights.sbomify.com/CVE-2024-5312/"}