Insufficient Verification of Data Authenticity Affecting @kindspells/astro-shield package, versions >=1.2.0 <1.3.2


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.05% (18th 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-6515737
  • published2 Apr 2024
  • disclosed1 Apr 2024
  • creditcastarco

Introduced: 1 Apr 2024

CVE-2024-30250  (opens in a new tab)
CWE-345  (opens in a new tab)

How to fix?

Upgrade @kindspells/astro-shield to version 1.3.2 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 Insufficient Verification of Data Authenticity due to the setting of a correct integrity attribute to injected code. This allows bypassing the allow-lists for cross-origin resources by introducing valid integrity attributes to the injected code, leading the browser to believe that the injected resource is legitimate.

Note: To exploit this issue, an attacker must first inject code into the rendered pages by exploiting other not-related potential vulnerabilities.

CVSS Scores

version 3.1