learn-javascript icon indicating copy to clipboard operation
learn-javascript copied to clipboard

[Security] Critical Lodash Vulnerabilities via gitbook-plugin-sharing

Open RJPalmer opened this issue 3 months ago โ€ข 1 comments

๐Ÿ› Bug Summary

Critical vulnerabilities were identified in lodash (โ‰ค 4.17.20), a transitive dependency introduced through gitbook-plugin-sharing.
These include multiple Prototype Pollution and Command Injection issues with no current fix available.


๐Ÿ” Details

Vulnerable Package: lodash
Affected Versions: โ‰ค 4.17.20
Dependency Path:
[email protected] โ†’ lodash@โ‰ค4.17.20
Severity: Critical

Relevant Advisories:

Fix Availability:
๐Ÿšซ No official fix currently available for gitbook-plugin-sharing.


โš ๏ธ Impact

  • Risk of arbitrary code execution or data tampering through prototype pollution.
  • May compromise application security if lodash methods are invoked with untrusted input.

๐Ÿงช Steps to Reproduce

  1. Run npm audit in the project root.
  2. Observe the critical vulnerabilities reported for lodash (transitive via gitbook-plugin-sharing).

๐Ÿ’ก Proposed Actions

  • Explore removing or replacing gitbook-plugin-sharing with a maintained alternative.
  • If replacement is not feasible:
    • Fork the plugin and upgrade lodash to โ‰ฅ4.17.21.
    • Use npm overrides or Yarn resolutions to force a safe lodash version.
  • Re-run npm audit after mitigation to confirm vulnerability resolution.

๐Ÿงญ Environment

Key Value
Node.js version e.g., 20.10.0
npm version e.g., 10.5.0
OS e.g., macOS 15.6.1 / Ubuntu 22.04

โœ… Additional Notes

Please assign this issue for tracking and remediation.
This will help maintain project security and ensure compatibility with modern dependency versions.

RJPalmer avatar Oct 05 '25 21:10 RJPalmer

@RJPalmer Appreciate for creating this issue.

sumn2u avatar Oct 05 '25 23:10 sumn2u