{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-4870 exists.","fix":"No fix has been published for CVE-2012-4870 yet. Limit exposure of the affected software until one is available.","what":"CVE-2012-4870 is a medium-severity cross-site scripting vulnerability in Sangoma Freepbx, published on 6 Sep 2012. 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-2012-4870 and fix it if it is affected.\n\nWhat it is: CVE-2012-4870 is a medium-severity cross-site scripting vulnerability in Sangoma Freepbx, published on 6 Sep 2012. 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-2012-4870 exists.\n\nAffected product: Sangoma Freepbx. 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-2012-4870/ (Markdown: https://insights.sbomify.com/CVE-2012-4870/index.md)","id":"CVE-2012-4870","markdown":"https://insights.sbomify.com/CVE-2012-4870/index.md","name":"CVE-2012-4870","record":{"aliases":["GHSA-ww55-vf5f-pv36"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"PBX management interface","requires_auth":"none","summary":"Remote attackers can inject arbitrary web script or HTML into FreePBX management pages, potentially compromising user sessions.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"freepbx","vendor":"sangoma"}],"cvss":{"score":4.3,"severity":"medium","source":"nvd","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","version":"2.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Multiple cross-site scripting (XSS) vulnerabilities in FreePBX 2.9 and earlier allow remote attackers to inject arbitrary web script or HTML via the (1) context parameter to panel/index_amp.php or (2) panel/dhtml/index.php; (3) clid or (4) clidname parameters to panel/flash/mypage.php; (5) PATH_INFO to admin/views/freepbx_reload.php; or (6) login parameter to recordings/index.php.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2012-03-22","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2012-03-22","kind":"exploitdb","ref":"18649","stars":null,"title":"FreePBX 2.9.0/2.10.0 - Multiple Vulnerabilities"}],"tier":"weaponised"},"has_fix":null,"headline":"Cross-site scripting in n/a","id":"CVE-2012-4870","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"sangoma:freepbx","products":["sangoma:freepbx"],"type":"xss","year":"2012"},"n_packages":0,"n_references":8,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2012-4871"},"packages":[],"prev":{"headline":"Command injection in n/a","id":"CVE-2012-4869"},"products":["n/a"],"published":"2012-09-06","related":[{"cvss_score":10,"headline":"Sangoma FreePBX Authentication Bypass","id":"CVE-2025-57819","kev_date_added":"2025-08-29","published":"2025-08-28"},{"cvss_score":9.8,"headline":"Sangoma FreePBX Improper Authentication","id":"CVE-2019-19006","kev_date_added":"2026-02-03","published":"2019-11-21"},{"cvss_score":9.3,"headline":"FreePBX: Unauthenticated SQL injection in FreePBX missedcall via inbound Caller ID name leads to administrator takeover","id":"CVE-2026-73663","kev_date_added":null,"published":"2026-08-13"},{"cvss_score":9.3,"headline":"FreePBX UCP: Unauthenticated remote code execution via socket.io namespace auth bypass and AMI action injection","id":"CVE-2026-73665","kev_date_added":null,"published":"2026-08-13"},{"cvss_score":9.3,"headline":"FreePBX: Unauthenticated Use of Hard-Coded Credentials Vulnerability in FreePBX UCP Interface","id":"CVE-2026-46376","kev_date_added":null,"published":"2026-05-29"},{"cvss_score":9.3,"headline":"FreePBX Endpoint Manager Allows Unauthenticated Logins to Administrator Control Panel via Forged Basic Auth Header","id":"CVE-2025-66039","kev_date_added":null,"published":"2025-12-09"},{"cvss_score":8.8,"headline":"Missing authorization in n/a","id":"CVE-2023-43336","kev_date_added":null,"published":"2023-11-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Remote attackers can inject arbitrary web script or HTML into FreePBX management pages, potentially compromising user sessions.","url":"https://insights.sbomify.com/CVE-2012-4870/"}