Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Affecting @kindspells/astro-shield package, versions >=1.2.0 <1.3.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-KINDSPELLSASTROSHIELD-6513789
  • published29 Mar 2024
  • disclosed28 Mar 2024
  • creditUnknown

Introduced: 28 Mar 2024

CVE-2024-29896  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade @kindspells/astro-shield to version 1.3.0 or higher.

Overview

@kindspells/astro-shield is an Astro integration to enhance your website's security with SubResource Integrity hashes, Content-Security-Policy headers, and other techniques.

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') when automated CSP headers generation for SSR content is enabled and the web application serves content that can be partially controlled by external users. An attacker can allow-list malicious injected resources like inlined JS, or references to external malicious scripts by exploiting the CSP headers generation feature.

References

CVSS Scores

version 3.1