VYPR
Moderate severityNVD Advisory· Published Jul 28, 2021· Updated Sep 17, 2024

Cross-site Scripting (XSS)

CVE-2021-23416

Description

This affects all versions of package curly-bracket-parser. When used as a template library, it does not properly sanitize the user input.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

CVE-2021-23416: All versions of curly-bracket-parser fail to sanitize user input, enabling reflected XSS in template contexts.

Vulnerability

All versions of the package curly-bracket-parser are vulnerable to Cross-site Scripting (XSS). When used as a template library, it does not properly sanitize user input supplied to template variables, such as {{name}} [1][2][3].

Exploitation

An attacker can inject arbitrary JavaScript by providing a crafted value for a template variable, for example via a URL query parameter like ?name=. The parser processes the template and returns the unsanitized string to the browser, which then executes the injected script [2].

Impact

Successful exploitation leads to reflected XSS, allowing the attacker to execute arbitrary JavaScript in the victim's browser. This can result in session hijacking, defacement, or theft of sensitive data.

Mitigation

As of the publication date (July 2021), there is no fixed version available for curly-bracket-parser [2]. Users should avoid using the package in contexts where user input is processed, or manually sanitize output with a dedicated sanitization library.

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
curly-bracket-parsernpm
<= 1.0.2

Affected products

3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

5

News mentions

0

No linked articles in our index yet.