Vulnerability Details : CVE-2023-33962
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 `'`. As a workaround, users can avoid this issue by using only double quotes `"` for HTML attributes.
Vulnerability category: Cross site scripting (XSS)
Products affected by CVE-2023-33962
- cpe:2.3:a:jstachio_project:jstachio:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-33962
0.11%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 46 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-33962
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
NIST | |
5.4
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
2.3
|
2.7
|
GitHub, Inc. |
CWE ids for CVE-2023-33962
-
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.Assigned by:
- nvd@nist.gov (Primary)
- security-advisories@github.com (Secondary)
References for CVE-2023-33962
-
https://github.com/jstachio/jstachio/commit/7b2f78377d1284df14c580be762a25af5f8dcd66
Fix #157 add more aggressive html5 escaping · jstachio/jstachio@7b2f783 · GitHubPatch
-
https://github.com/jstachio/jstachio/pull/158
Fix #157 add more aggressive html5 escaping by agentgt · Pull Request #158 · jstachio/jstachio · GitHubPatch
-
https://github.com/jstachio/jstachio/releases/tag/v1.0.1
Release v1.0.1 · jstachio/jstachio · GitHubRelease Notes
-
https://github.com/jstachio/jstachio/security/advisories/GHSA-gwxv-jv83-6qjr
XSS vulnerability: Unescaped single quotes · Advisory · jstachio/jstachio · GitHubExploit;Vendor Advisory
-
https://github.com/jstachio/jstachio/issues/157
More aggressive escaping · Issue #157 · jstachio/jstachio · GitHubIssue Tracking;Patch
Jump to