{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2016-7981 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2016-7981 is a medium-severity cross-site scripting vulnerability in Spip Spip, published on 18 Jan 2017. 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-2016-7981 and fix it if it is affected.\n\nWhat it is: CVE-2016-7981 is a medium-severity cross-site scripting vulnerability in Spip Spip, published on 18 Jan 2017. 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-2016-7981 exists.\n\nAffected product: Spip Spip. 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-2016-7981/ (Markdown: https://insights.sbomify.com/CVE-2016-7981/index.md)","id":"CVE-2016-7981","markdown":"https://insights.sbomify.com/CVE-2016-7981/index.md","name":"CVE-2016-7981","record":{"aliases":["DEBIAN-CVE-2016-7981","GHSA-9pfr-grw4-7phc","UBUNTU-CVE-2016-7981"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"SPIP CMS","requires_auth":"none","summary":"Remote attackers can inject arbitrary web script or HTML via the var_url parameter in SPIP's valider_xml.php, potentially compromising user sessions.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"spip","vendor":"spip"}],"cvss":{"score":6.1,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Cross-site scripting (XSS) vulnerability in valider_xml.php in SPIP 3.1.2 and earlier allows remote attackers to inject arbitrary web script or HTML via the var_url parameter in a valider_xml action.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2016/CVE-2016-7981.yaml","stars":null,"title":"SPIP \u003c3.1.2 - Cross-Site Scripting"}],"tier":"weaponised"},"has_fix":true,"headline":"Cross-site scripting in n/a","id":"CVE-2016-7981","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"spip:spip","products":["spip:spip"],"type":"xss","year":"2016"},"n_packages":0,"n_references":7,"next":{"headline":"Path traversal in n/a","id":"CVE-2016-7982"},"packages":[],"prev":{"headline":"Cross-site request forgery in n/a","id":"CVE-2016-7980"},"products":["n/a"],"published":"2017-01-18","related":[{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2012-4331","kev_date_added":null,"published":"2012-08-14"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2008-5812","kev_date_added":null,"published":"2009-01-02"},{"cvss_score":9.8,"headline":"SPIP Bigup Multipart File Upload OS Command Injection","id":"CVE-2024-8517","kev_date_added":null,"published":"2024-09-06"},{"cvss_score":9.8,"headline":"SQL injection in n/a","id":"CVE-2023-24258","kev_date_added":null,"published":"2023-02-27"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2017-9736","kev_date_added":null,"published":"2017-06-17"},{"cvss_score":9.8,"headline":"Deserialization in n/a","id":"CVE-2016-3154","kev_date_added":null,"published":"2016-04-08"},{"cvss_score":9.2,"headline":"SPIP \u003c 4.4.9 Insecure Deserialization","id":"CVE-2026-27475","kev_date_added":null,"published":"2026-02-19"}],"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":"MIT","name":"Nuclei templates"}],"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 via the var_url parameter in SPIP's valider_xml.php, potentially compromising user sessions.","url":"https://insights.sbomify.com/CVE-2016-7981/"}