# GHSA-g9cg-h3jm-cwrc: Prototype Pollution in @hapi/subtext

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T15:47:23.000Z
- Modified: 2025-09-26T23:12:03.000Z
- Weaknesses: CWE-1321

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- @hapi/pez (npm): before 5.0.1

## References

- <https://github.com/hapijs/pez> (package)
- <https://www.npmjs.com/advisories/1480> (web)

## Sources

- GitHub Advisory Database: [GHSA-g9cg-h3jm-cwrc](https://github.com/advisories/GHSA-g9cg-h3jm-cwrc), CC-BY-4.0, modified 2025-09-26

---

Page: https://cve.day/GHSA-g9cg-h3jm-cwrc · Whole record: https://cve.day/GHSA-g9cg-h3jm-cwrc.json · Rebuilt by cve.day 2026-11-25T22:56:45.410Z
