Open Closed

ABP package contains Lodash package version with known security vulnerabilities #10615


User avatar
0
z2lai created

We have ABP's audit-logging package which is dependent on lodash as seen below: @volo/audit-logging@10.1.0 (direct dependency) in package.json:90 @volo/abp.aspnetcore.mvc.ui.theme.commercial@10.1.0 in yarn.lock:5502 @abp/aspnetcore.mvc.ui.theme.shared@10.1.0 in yarn.lock:5 @abp/lodash@10.1.0 in yarn.lock:125 lodash@4.17.23 in yarn.lock:9506

lodash 4.17.23 has 2 known security vulnerabilities, both patched in >=4.18.0:

Severity	Issue	Advisory
High	Code Injection via _.template imports key names	npmjs.com/advisories/1115806
Moderate	Prototype Pollution via array path bypass in _.unset and _.omit	npmjs.com/advisories/1115810

When will ABP ship with a version of Lodash that has those vulnerabilities patched?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Hi,

    Both advisories are fixed in lodash 4.18.0+. @abp/lodash already allows any 4.x ("lodash": "^4.17.21"), so you can force the safe version in your own project right now:

    1. Add a resolution in your root package.json (use overrides for npm/pnpm):
    {
      "resolutions": {
        "lodash": "^4.18.1"
      }
    }
    
    1. Re-install and refresh the libs folder:
    yarn install
    abp install-libs
    

    abp install-libs copies the physical files from node_modules into wwwroot/libs, so once lodash is bumped there, your wwwroot/libs/lodash/lodash.min.js will be the patched version and both advisories should clear.

    We'll also raise the floor in @abp/lodash for future releases.

    Thanks

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 21, 2026, 06:18
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.