GHSA-g9cg-h3jm-cwrc

Suggest an improvement
Source
https://github.com/advisories/GHSA-g9cg-h3jm-cwrc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-g9cg-h3jm-cwrc/GHSA-g9cg-h3jm-cwrc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-g9cg-h3jm-cwrc
Published
2020-09-03T15:47:23Z
Modified
2025-09-26T23:12:03Z
Summary
Prototype Pollution in @hapi/subtext
Details

Versions of @hapi/pez prior to 4.1.2 or 5.0.1 are vulnerable to Prototype Pollution. A multipart payload can be constructed in a way that one of the parts’ content can be set as the entire payload object’s prototype. If this prototype contains data, it may bypass other validation rules which enforce access and privacy. If this prototype evaluates to null, it can cause unhandled exceptions when the request payload is accessed.

Recommendation

Upgrade to versions 5.0.1 or later. There is a fix available for version 4.1.2, but it only available for direct download from the repository.

Database specific
{
    "cwe_ids":  [
        "CWE-1321"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-08-31T19:00:51Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / @hapi/pez

Package

Name
@hapi/pez
View open source insights on deps.dev
Purl
pkg:npm/%40hapi/pez

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-g9cg-h3jm-cwrc/GHSA-g9cg-h3jm-cwrc.json"