GHSA-f825-f98c-gj3g

Suggest an improvement
Source
https://github.com/advisories/GHSA-f825-f98c-gj3g
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-f825-f98c-gj3g/GHSA-f825-f98c-gj3g.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-f825-f98c-gj3g
Aliases
Published
2022-07-29T00:00:18Z
Modified
2023-12-06T01:02:07.656454Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H CVSS Calculator
Summary
automattic/mongoose vulnerable to Prototype pollution via Schema.path
Details

Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Affected versions of this package are vulnerable to Prototype Pollution. The Schema.path() function is vulnerable to prototype pollution when setting the schema object. This vulnerability allows modification of the Object prototype and could be manipulated into a Denial of Service (DoS) attack.

Database specific
{
    "nvd_published_at": "2022-07-28T20:15:00Z",
    "cwe_ids": [
        "CWE-1321"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2022-08-04T14:22:23Z"
}
References

Affected packages

npm / mongoose

Package

Affected ranges

Type
SEMVER
Events
Introduced
6.0.0
Fixed
6.4.6

npm / mongoose

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.13.15