Description
The lodash.set dependency used by snapshot.js contains a prototype pollution vulnerability that has not yet been patched.
The potential security risk in the library can be mitigated by either downgrading to a non-vulnerable version, if possible, or removing the dependency altogether and replace the singular call with a custom function.
Details
- Affected Package:
lodash.set
- Vulnerability Type: Prototype Pollution
- Current Version: 4.3.2
- Status: Vulnerability not yet patched
- Severity: High
Steps to Reproduce
- Install the current version of snapshot.js.
- Run a vulnerability scan (e.g.,
npm audit or yarn audit).
- Observe the reported prototype pollution vulnerability in
lodash.set.
Recommended Actions
- Monitor: Keep an eye on updates to
lodash.set and apply the patch once available.
- Downgrade: If a non-vulnerable version that still provides the required functionality exists, consider downgrading to that version (earliest version with the vulnerability is 3.7.0)
- Remove: Evaluate the feasibility of removing the
lodash.set dependency from snapshot.js.
References
Description
The
lodash.setdependency used by snapshot.js contains a prototype pollution vulnerability that has not yet been patched.The potential security risk in the library can be mitigated by either downgrading to a non-vulnerable version, if possible, or removing the dependency altogether and replace the singular call with a custom function.
Details
lodash.setSteps to Reproduce
npm auditoryarn audit).lodash.set.Recommended Actions
lodash.setand apply the patch once available.lodash.setdependency from snapshot.js.References