Skip to content

[Security] Critical Lodash Vulnerabilities via gitbook-plugin-sharingΒ #335

@RJPalmer

Description

@RJPalmer

πŸ› 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:
gitbook-plugin-sharing@1.0.1 β†’ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions