CVE-2023-33962

Public Exploit
JStachio XSS vulnerability: Unescaped single quotes

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. Version 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.

Category

5.4
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.52%
Vendor Advisory github.com
Affected: jstachio jstachio
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-33962?
CVE-2023-33962 has been scored as a medium severity vulnerability.
How to fix CVE-2023-33962?
To fix CVE-2023-33962, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-33962 being actively exploited in the wild?
It is possible that CVE-2023-33962 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-33962?
CVE-2023-33962 affects jstachio jstachio.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.