{"answers":{"affected":"4 open source packages ship an affected version, including org.apache.velocity.tools:velocity-tools-parent and org.apache.velocity:velocity-tools. It affects 2 products.","exploited":"There is no known exploitation of CVE-2020-13959 in the wild and no public exploit code.","fix":"Upgrade org.apache.velocity.tools:velocity-tools-parent to 3.1 or later.","what":"CVE-2020-13959 is a medium-severity cross-site scripting vulnerability in Debian Debian Linux, published on 10 Mar 2021. 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-2020-13959 and fix it if it is affected.\n\nWhat it is: CVE-2020-13959 is a medium-severity cross-site scripting vulnerability in Debian Debian Linux, published on 10 Mar 2021. 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-2020-13959 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.velocity.tools:velocity-tools-parent (Maven): affected all versions; fixed in 3.1\n- org.apache.velocity.tools:velocity-tools-parent (Maven): affected all versions; fixed in 3.1\n- org.apache.velocity:velocity-tools (Maven): affected all versions up to 2.0; no fix listed\n- org.apache.velocity:velocity-tools (Maven): affected all versions up to 2.0; no fix listed\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-2020-13959/ (Markdown: https://insights.sbomify.com/CVE-2020-13959/index.md)","id":"CVE-2020-13959","markdown":"https://insights.sbomify.com/CVE-2020-13959/index.md","name":"CVE-2020-13959","record":{"aliases":["DEBIAN-CVE-2020-13959","DLA-2597-1","GHSA-fh63-4r66-jc7v","OESA-2021-1122","ROOT-APP-MAVEN-CVE-2020-13959","UBUNTU-CVE-2020-13959","USN-6282-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Java template library","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript via reflected XSS in the default error page, potentially stealing session cookies or performing actions as the victim.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"velocity_tools","vendor":"apache"},{"product":"debian_linux","vendor":"debian"}],"cvss":{"score":6.1,"severity":"medium","source":"nvd","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":"The default error page for VelocityView in Apache Velocity Tools prior to 3.1 reflects back the vm file that was entered as part of the URL. An attacker can set an XSS payload file as this vm file in the URL which results in this payload being executed. XSS vulnerabilities allow attackers to execute arbitrary JavaScript in the context of the attacked website and the attacked user. This can be abused to steal session cookies, perform requests in the name of the victim or for phishing attacks.","ecosystems":["Maven"],"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":"Velocity Tools XSS Vulnerability","id":"CVE-2020-13959","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"debian:debian_linux","products":["debian:debian_linux"],"type":"xss","year":"2020"},"n_packages":4,"n_references":8,"next":{"headline":"Misconfiguration in n/a","id":"CVE-2020-13960"},"packages":[{"ecosystem":"Maven","fixed":["3.1"],"introduced":["0"],"last_affected":[],"package":"org.apache.velocity.tools:velocity-tools-parent","purl":null,"source":"GHSA-fh63-4r66-jc7v"},{"ecosystem":"Maven","fixed":["3.1"],"introduced":["0"],"last_affected":[],"package":"org.apache.velocity.tools:velocity-tools-parent","purl":"pkg:maven/org.apache.velocity.tools/velocity-tools-parent","source":"GHSA-fh63-4r66-jc7v"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.0"],"package":"org.apache.velocity:velocity-tools","purl":null,"source":"GHSA-fh63-4r66-jc7v"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.0"],"package":"org.apache.velocity:velocity-tools","purl":"pkg:maven/org.apache.velocity/velocity-tools","source":"GHSA-fh63-4r66-jc7v"}],"prev":{"headline":"Code injection in Apache OpenOffice","id":"CVE-2020-13958"},"products":["Apache Velocity Tools"],"published":"2021-03-10","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":"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-02-13","vendors":["Apache Software Foundation"]},"summary":"Attackers can execute arbitrary JavaScript via reflected XSS in the default error page, potentially stealing session cookies or performing actions as the victim.","url":"https://insights.sbomify.com/CVE-2020-13959/"}