{"answers":{"affected":"2 open source packages ship an affected version, including io.jstach:jstachio. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-33962 exists.","fix":"Upgrade io.jstach:jstachio to 1.0.1 or later.","what":"CVE-2023-33962 is a medium-severity cross-site scripting vulnerability in jstachio, published on 30 May 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-33962 and fix it if it is affected.\n\nWhat it is: CVE-2023-33962 is a medium-severity cross-site scripting vulnerability in jstachio, published on 30 May 2023. Any signed-in user can exploit it over the network, 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-2023-33962 exists.\n\nAffected packages and fixed versions:\n- io.jstach:jstachio (Maven): affected all versions; fixed in 1.0.1\n- io.jstach:jstachio (Maven): affected all versions; fixed in 1.0.1\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-2023-33962/ (Markdown: https://insights.sbomify.com/CVE-2023-33962/index.md)","id":"CVE-2023-33962","markdown":"https://insights.sbomify.com/CVE-2023-33962/index.md","name":"CVE-2023-33962","record":{"aliases":["GHSA-gwxv-jv83-6qjr"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Java templating library","requires_auth":"low_privilege","summary":"Attackers can inject malicious JavaScript via unescaped single quotes in JStachio templates, leading to session hijacking or data theft.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"jstachio","vendor":"jstachio_project"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/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":"JStachio is a  type-safe Java Mustache templating engine. Prior to version 1.0.1, JStachio fails to escape single quotes `'` in HTML, allowing an attacker to inject malicious code. This vulnerability can be exploited by an attacker to execute arbitrary JavaScript code in the context of other users visiting pages that use this template engine. This can lead to various consequences, including session hijacking, defacement of web pages, theft of sensitive information, or even the propagation of malware.\n\nVersion 1.0.1 contains a patch for this issue. To mitigate this vulnerability, the template engine should properly escape special characters, including single quotes. Common practice is to escape `'` as `\u0026#39`. As a workaround, users can avoid this issue by using only double quotes `\"` for HTML attributes.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-18","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-18T12:57:34Z","kind":"github_poc","ref":"https://github.com/shoucheng3/jstachio__jstachio_CVE-2023-33962_1-0-0","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"JStachio XSS vulnerability: Unescaped single quotes","id":"CVE-2023-33962","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2023"},"n_packages":2,"n_references":5,"next":{"headline":"DataEase data source has deserialization vulnerability","id":"CVE-2023-33963"},"packages":[{"ecosystem":"Maven","fixed":["1.0.1"],"introduced":["0"],"last_affected":[],"package":"io.jstach:jstachio","purl":null,"source":"GHSA-gwxv-jv83-6qjr"},{"ecosystem":"Maven","fixed":["1.0.1"],"introduced":["0"],"last_affected":[],"package":"io.jstach:jstachio","purl":"pkg:maven/io.jstach/jstachio","source":"GHSA-gwxv-jv83-6qjr"}],"prev":{"headline":"Leantime Stored Cross-site Scripting Vulnerability","id":"CVE-2023-33961"},"products":["jstachio"],"published":"2023-05-30","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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-01-10","vendors":["jstachio"]},"summary":"Attackers can inject malicious JavaScript via unescaped single quotes in JStachio templates, leading to session hijacking or data theft.","url":"https://insights.sbomify.com/CVE-2023-33962/"}