{"cve":"CVE-2023-33962","nvd":{"published":"2023-05-30T22:15:10.933","modified":"2026-06-17T06:02:36.583","status":"Modified","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 `&#39`. As a workaround, users can avoid this issue by using only double quotes `\"` for HTML attributes.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/jstachio/jstachio/commit/7b2f78377d1284df14c580be762a25af5f8dcd66","https://github.com/jstachio/jstachio/issues/157","https://github.com/jstachio/jstachio/pull/158","https://github.com/jstachio/jstachio/releases/tag/v1.0.1","https://github.com/jstachio/jstachio/security/advisories/GHSA-gwxv-jv83-6qjr"],"products":["jstachio_project:jstachio"],"source":"nvd","synced_at":"2026-10-19T21:38:24.161619714+00:00"},"epss":{"cve":"CVE-2023-33962","score":0.00579,"percentile":0.47684,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-gwxv-jv83-6qjr","url":"https://osv.dev/vulnerability/GHSA-gwxv-jv83-6qjr","summary":"JStachio XSS vulnerability: Unescaped single quotes","modified":"2024-02-16T08:24:50.926758Z","packages":[{"ecosystem":"Maven","name":"io.jstach:jstachio","purl":"pkg:maven/io.jstach/jstachio","ranges":["<1.0.1"],"fixed":["1.0.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}