Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @hapi/pez
  4. ›
  5. GHSA-g9cg-h3jm-cwrc

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

September 3, 2020 (updated September 26, 2025)

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.

References

  • github.com/advisories/GHSA-g9cg-h3jm-cwrc
  • github.com/hapijs/pez
  • www.npmjs.com/advisories/1480

Code Behaviors & Features

Detect and mitigate GHSA-g9cg-h3jm-cwrc with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.0.1

Fixed versions

  • 5.0.1

Solution

Upgrade to version 5.0.1 or above.

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/@hapi/pez/GHSA-g9cg-h3jm-cwrc.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 01 Oct 2025 00:18:33 +0000.