MEDIUM4.2
GHSA-h9rv-jmmf-4pgx
Cross-Site Scripting in serialize-javascript
Quick fix
GHSA-h9rv-jmmf-4pgx — serialize-javascript: upgrade to the fixed version with the command below.
npm install serialize-javascript@2.1.1Details
Versions of `serialize-javascript` prior to 2.1.1 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize serialized regular expressions. This vulnerability does not affect Node.js applications.
## Recommendation
Upgrade to version 2.1.1 or later.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:npm/serialize-javascript"]}'