Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @hapi/subtext
  4. ›
  5. GMS-2020-31

GMS-2020-31: Prototype Pollution in @hapi/subtext

September 3, 2020 (updated October 4, 2021)

Versions of @hapi/subtext 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
  • www.npmjs.com/advisories/1480

Code Behaviors & Features

Detect and mitigate GMS-2020-31 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 6.1.3, all versions starting from 7.0.0 before 7.0.3

Fixed versions

  • 6.1.3
  • 7.0.3

Solution

Upgrade to versions 6.1.3, 7.0.3 or above.

Source file

npm/@hapi/subtext/GMS-2020-31.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:27 +0000.