CVE-2023-33962: JStachio - Stored XSS
- Cve: CVE-2023-33962
- Name: JStachio - Stored XSS
- 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.
- Impact: Attackers can execute arbitrary JavaScript in users' browsers, leading to session hijacking, defacement, or theft of sensitive information.
- Remediation: Update to version 1.0.1 or later, which properly escapes special characters including single quotes.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Exploit requires malicious template rendering.
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00579
- Epss percentile: 0.48587
- Assignee: [email protected]
- Published at: 2023-05-30T22:15:10Z
- Age in days: 1274
- Modified at: 2026-06-17T06:02:36Z
- Patch available: yes
- Public exploits total: 2
- References total: 5
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-33962
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/jstachio/jstachio/security/advisories/GHSA-gwxv-jv83-6qjr | nvd | 2023-05-30 |
| https://github.com/shoucheng3/jstachio__jstachio_CVE-2023-33962_1-0-0 | poc-in-github | 2025-08-18 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| jstachio_project:jstachio | < 1.0.1 | no | nvd | /v1/products/jstachio_project/jstachio |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| jstachio/jstachio | commit, fix, issues, package, pull, releases, security_advisory | yes | /v1/repositories/jstachio/jstachio |
Index
- Repositories: 2
- Repositories high signal: 2
- Checked, none or zero: packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2023-05-30
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts