XSS via missing singlequote escape in JStachio <1.0.1
CVE-2023-33962 Published on May 30, 2023

JStachio XSS vulnerability: Unescaped single quotes
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.

Github Repository NVD

Vulnerability Analysis

CVE-2023-33962 is exploitable with network access, requires user interaction and a small amount of user privileges. This vulnerability is considered to have a low attack complexity. Public availability of a proof of concept (POC) exploit exists for CVE-2023-33962. The potential impact of an exploit of this vulnerability is considered to have a small impact on confidentiality and integrity, and no impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
LOW
User Interaction:
REQUIRED
Scope:
CHANGED
Confidentiality Impact:
LOW
Integrity Impact:
LOW
Availability Impact:
NONE

Weakness Type

What is a XSS Vulnerability?

The software 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.

CVE-2023-33962 has been classified to as a XSS vulnerability or weakness.


Products Associated with CVE-2023-33962

Want to know whenever a new CVE is published for Jstachioproject Jstachio? stack.watch will email you.

 

Affected Versions

jstachio Version < 1.0.1 is affected by CVE-2023-33962

Vulnerable Packages

The following package name and versions may be associated with CVE-2023-33962

Package Manager Vulnerable Package Versions Fixed In
maven io.jstach:jstachio < 1.0.1 1.0.1

Exploit Probability

EPSS
1.02%
Percentile
77.60%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.