LiveActive security incident?Get immediate response
CVE Record

CVE-2021-23416: Cross-site Scripting (XSS)

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

MediumCVSS 5.4Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2021-23416 is a cross-site scripting issue in the npm package curly-bracket-parser. If an application uses it as a template library with user-controlled input, malicious script content may be rendered to users. The supplied sources do not identify active exploitation or a fixed release.

Executive priority

Treat this as a moderate web application risk. Prioritize systems that render customer, partner, or public input through this package, especially internet-facing applications. No active exploitation is evidenced in the supplied sources.

Technical view

The package curly-bracket-parser fails to properly sanitize user input when used for templating. The CVSS 3.1 score is 5.4, with network attack vector, low complexity, no privileges required, required user interaction, and limited confidentiality and integrity impact.

Likely exposure

Exposure is most likely in JavaScript applications that include curly-bracket-parser and use it to process or render untrusted template input in a browser-visible context.

Exploitation context

The source bundle does not show CISA KEV listing or other evidence of active exploitation. Exploitation would depend on attacker-controlled input reaching the template rendering path and a user viewing the affected output.

Researcher notes

Affected product data is sparse: vendor is listed as n/a and affected versions are represented as all versions/package version 0 in the bundle. No CWE or patch version is provided, so validation should focus on actual usage paths.

Mitigation direction

  • Inventory projects for curly-bracket-parser in package manifests and lockfiles.
  • Check Snyk and vendor guidance for available remediation or replacement advice.
  • Avoid passing untrusted input through this template parser.
  • Escape or sanitize user-controlled output before browser rendering.
  • Consider replacing the package if no maintained fixed version is available.

Validation and detection

  • Confirm whether curly-bracket-parser is present in direct or transitive dependencies.
  • Review call sites where template strings include user-controlled data.
  • Verify rendered output cannot execute script in the browser.
  • Run dependency scanning for CVE-2021-23416 or SNYK-JS-CURLYBRACKETPARSER-1297106.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2021-23416 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.4 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.4CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P2.82.5Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.4Medium
CVSS 3.1 vector shape for CVE-2021-23416Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/acurly-bracket-parser0Listed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.