Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Replace Lodash Per Method Packages with Main Lodash Package #1643

@rmtuckerphx

Description

@rmtuckerphx

I'm submitting a...

  • Bug report
  • Feature request
  • Documentation issue or request
  • Other... Please describe:

Expected Behavior

Resolve CVE-2020-8203 and replace lodash per method packages with main lodash package.

CVE-2020-8203 - Prototype Pollution in lodash
Description
Versions of lodash prior to 4.17.19 are vulnerable to Prototype Pollution. The functions pick, set, setWith, update, updateWith, and zipObjectDeep allow a malicious user to modify the prototype of Object if the property identifiers are user-supplied. Being affected by this issue requires manipulating objects based on user-provided property values or arrays.

This vulnerability causes the addition or modification of an existing property that will exist on all objects and may lead to Denial of Service or Code Execution under specific circumstances.

Current Behavior

Jovo 4.6.2 includes lodash.set which fails CVE-2020-8203 and there is no patched lodash per method package that resolves it. The best approach is to remove all lodash per method packages and instead use the patched lodash library 4.17.19 or above. This prepares Jovo for lodash v5 which will no longer support per method packages. See https://lodash.com/per-method-packages

The most recent version of lodash.set is 4.3.2 published 8 years ago.
Most recent version of lodash is 4.17.21 published 4 years ago.

Error Log

None

Your Environment

  • Jovo Framework version used: 4.6.2
  • Operating System: Windows 11 Pro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions