Vulnerabilities |
2 via 3 paths |
|---|---|
Dependencies |
147 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
medium severity
new
- Vulnerable module: js-yaml
- Introduced through: @yarnpkg/core@4.9.0
Detailed paths
-
Introduced through: snyk-nodejs-lockfile-parser@snyk/nodejs-lockfile-parser › @yarnpkg/core@4.9.0 › @yarnpkg/parsers@3.0.3 › js-yaml@3.14.2
-
Introduced through: snyk-nodejs-lockfile-parser@snyk/nodejs-lockfile-parser › @yarnpkg/core@4.9.0 › @yarnpkg/shell@4.1.3 › @yarnpkg/parsers@3.0.3 › js-yaml@3.14.2
Overview
js-yaml is a human-friendly data serialization language.
Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in the storeMappingPair() function in loader.js when handling repeated aliases in merge sequences. An attacker can exhaust CPU resources and significantly degrade service availability by submitting malicious YAML documents.
Remediation
Upgrade js-yaml to version 4.2.0 or higher.
References
medium severity
- Vulnerable module: uuid
- Introduced through: uuid@8.3.2
Detailed paths
-
Introduced through: snyk-nodejs-lockfile-parser@snyk/nodejs-lockfile-parser › uuid@8.3.2Remediation: Upgrade to uuid@11.1.1.
Overview
uuid is a RFC4122 (v1, v4, and v5) compliant UUID library.
Affected versions of this package are vulnerable to Improper Validation of Specified Index, Position, or Offset in Input due to accepting external output buffers but not rejecting out-of-range writes (small buf or large offset). This inconsistency allows silent partial writes into caller-provided buffers.
PoC
cd /home/StrawHat/uuid
npm ci
npm run build
node --input-type=module -e "
import {v4,v5,v6} from './dist-node/index.js';
const ns='6ba7b810-9dad-11d1-80b4-00c04fd430c8';
for (const [name,fn] of [
['v4',()=>v4({},new Uint8Array(8),4)],
['v5',()=>v5('x',ns,new Uint8Array(8),4)],
['v6',()=>v6({},new Uint8Array(8),4)],
]) {
try { fn(); console.log(name,'NO_THROW'); }
catch(e){ console.log(name,'THREW',e.name); }
}"
Remediation
Upgrade uuid to version 11.1.1, 14.0.0 or higher.