CVE-2023-33962

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-33962
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-33962.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-33962
Aliases
Published
2023-05-30T22:15:10Z
Modified
2024-05-14T11:39:51.921644Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/jstachio/jstachio

Affected ranges

Type
GIT
Repo
https://github.com/jstachio/jstachio
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

static-mustache-0.*

static-mustache-0.1
static-mustache-0.2
static-mustache-0.3
static-mustache-0.4

static-mustache-maven-parent-0.*

static-mustache-maven-parent-0.5.10
static-mustache-maven-parent-0.5.11
static-mustache-maven-parent-0.5.12
static-mustache-maven-parent-0.5.13
static-mustache-maven-parent-0.5.14
static-mustache-maven-parent-0.5.4
static-mustache-maven-parent-0.5.5
static-mustache-maven-parent-0.5.6
static-mustache-maven-parent-0.5.7
static-mustache-maven-parent-0.5.8
static-mustache-maven-parent-0.5.9

v0.*

v0.10.0
v0.10.1
v0.11.0
v0.11.1
v0.12.0
v0.13.0
v0.14.0
v0.15.0
v0.16.0
v0.17.0
v0.18.0
v0.19.0
v0.6.0
v0.7.0
v0.8.0
v0.8.1
v0.9.0
v0.9.1
v0.9.2
v0.9.3

v1.*

v1.0.0