GHSA-8687-vv9j-hgph

Suggest an improvement
Source
https://github.com/advisories/GHSA-8687-vv9j-hgph
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/10/GHSA-8687-vv9j-hgph/GHSA-8687-vv9j-hgph.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-8687-vv9j-hgph
Aliases
Published
2019-10-22T20:19:54Z
Modified
2023-11-29T22:07:26Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Improper Input Validation in Automattic Mongoose
Details

Automattic Mongoose through 5.7.4 allows attackers to bypass access control (in some applications) because any query object with a _bsontype attribute is ignored. For example, adding "_bsontype":"a" can sometimes interfere with a query filter. NOTE: this CVE is about Mongoose's failure to work around this _bsontype special case that exists in older versions of the bson parser (aka the mongodb/js-bson project).

Database specific
{
    "nvd_published_at": "2019-10-10T02:05:00Z",
    "cwe_ids": [
        "CWE-20"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2019-10-14T18:05:37Z"
}
References

Affected packages

npm / mongoose

Package

Affected ranges

Type
SEMVER
Events
Introduced
5.0.0
Fixed
5.7.5

Ecosystem specific

{
    "affected_functions": [
        "(mongoose).cast"
    ]
}

npm / mongoose

Package

Affected ranges

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

Ecosystem specific

{
    "affected_functions": [
        "(mongoose).cast"
    ]
}