CVE-2023-33962
Summary
| CVE | CVE-2023-33962 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-05-30 22:15:00 UTC |
| Updated | 2023-06-06 20:53:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-79
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Jstachio Project | Jstachio | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Fix #157 add more aggressive html5 escaping · jstachio/jstachio@7b2f783 · GitHub | MISC | github.com | |
| More aggressive escaping · Issue #157 · jstachio/jstachio · GitHub | MISC | github.com | |
| Fix #157 add more aggressive html5 escaping by agentgt · Pull Request #158 · jstachio/jstachio · GitHub | MISC | github.com | |
| Release v1.0.1 · jstachio/jstachio · GitHub | MISC | github.com | |
| XSS vulnerability: Unescaped single quotes · Advisory · jstachio/jstachio · GitHub | MISC | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.