CVE-2023-33962
published medium CVSS 3.1 · 5.4JStachio XSS vulnerability: Unescaped single quotes
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| jstachio | — | jstachio< 1.0.1 | Affected | Not stated | GitHub_M |
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 `'`. As a workaround, users can avoid this issue by using only double quotes `"` for HTML attributes.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| jstachio | jstachio | < 1.0.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
5- 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
Provider assertions
3GitHub_M · cna
JStachio XSS vulnerability: Unescaped single quotes
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- fc5f38e578e701110ff5a80274ef588f16790825066ab4840ca3f486f5c6654e
- Ingested
- 23 Sep 2026, 08:09:20 UTC
- Source record
- Official CVE record