Prototype Pollution in subtext

subtext Updated 02 Oct 2025

Summary

03/09/2020
HIGH
No i
High
Not published

GHSA-g64q-3vg8-8f93: Prototype Pollution in subtext. Affects subtext versions >= 0.0.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The subtext package is an npm package that is used for parsing and handling multipart HTTP requests. It allows developers to extract and process data from multipart payloads. However, all versions of subtext are vulnerable to Prototype Pollution.

Vulnerability Detail

Prototype Pollution is a vulnerability that occurs when an attacker can inject properties into existing objects, including JavaScript's built-in objects and functions. In the case of subtext, 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. This means that the attacker can manipulate the prototype to bypass validation rules and potentially access or modify sensitive data. Additionally, if the prototype evaluates to null, it can cause unhandled exceptions when the request payload is accessed.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Conclusion

The Prototype Pollution vulnerability in the subtext package can have serious security implications, allowing attackers to bypass validation rules and potentially access or modify sensitive data. It is crucial to update the dependencies to use the @hapi/subtext package, which addresses this vulnerability and provides a more secure solution. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for subtext →

Share this vulnerability

FAQ

Prototype Pollution is a vulnerability that allows an attacker to inject properties into existing objects, potentially bypassing validation rules and accessing or modifying sensitive data.

If your application uses the subtext package and is vulnerable to Prototype Pollution, an attacker could potentially manipulate the prototype of multipart payloads to bypass validation rules and access or modify sensitive data. This can lead to unauthorized access, data breaches, or other security issues.

Yes, the recommended fix is to update your dependencies to use the @hapi/subtext package instead of the deprecated subtext package. This updated package addresses the Prototype Pollution vulnerability and provides a more secure solution for parsing and handling multipart requests.

Yes, all versions of subtext are vulnerable to Prototype Pollution. It is recommended to update to the latest version of @hapi/subtext to mitigate this vulnerability.

You can find more information about the Prototype Pollution vulnerability in the subtext package in the advisory database of GitHub. The advisory provides details about the vulnerability, its impact, and recommendations for mitigation.

Related vulnerabilities

Recent vulnerabilities recorded for subtext.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback