{"id":"CVE-2023-33962","published":"2023-05-30T21:42:45Z","modified":"2025-01-10T16:49:18Z","title":"JStachio XSS vulnerability: Unescaped single quotes","vendor":"jstachio","product":"jstachio","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00579,"percentile":0.48588,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/jstachio/jstachio/security/advisories/GHSA-gwxv-jv83-6qjr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jstachio/jstachio/issues/157","tags":["x_refsource_MISC"]},{"url":"https://github.com/jstachio/jstachio/pull/158","tags":["x_refsource_MISC"]},{"url":"https://github.com/jstachio/jstachio/commit/7b2f78377d1284df14c580be762a25af5f8dcd66","tags":["x_refsource_MISC"]},{"url":"https://github.com/jstachio/jstachio/releases/tag/v1.0.1","tags":["x_refsource_MISC"]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":9.72},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"jstachio","affectedVersions":[{"vendor":"jstachio","product":"jstachio","versions":["< 1.0.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-10T16:49:04.685225Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"io.jstach:jstachio","vulnerableRanges":["<1.0.1"],"patched":["1.0.1"],"from":["GHSA-gwxv-jv83-6qjr"],"provenance":"source"}],"summary":{"text":"JStachio, a type-safe Java Mustache templating engine, fails to escape single quotes in HTML output before its 1.0.1 release, which is where the cross-site scripting flaw lives. An attacker with low privileges can get a victim to interact with a page generated by the engine, injecting script that runs in the other user's browser session over the network and enabling actions such as session hijacking, defacement, or theft of sensitive information.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:54Z"},"euvd":{"id":"EUVD-2023-1810","exploited":false,"provenance":"source"}}