CVE-2020-7719: Prototype Pollution in locutus

locutus Updated 02 Oct 2025

Summary

06/05/2021
Yes i
Critical
9.8

CVE-2020-7719: Prototype Pollution in locutus. Affects locutus versions < 2.0.12. Fixed in 2.0.12. 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

Locutus is an npm package that provides JavaScript functions for PHP. It allows developers to use PHP functions in JavaScript applications. The package is widely used and provides a convenient way to bridge the gap between PHP and JavaScript. However, versions prior to 2.0.12 of locutus are vulnerable to Prototype Pollution through the php.strings.parse_str function.

Vulnerability Detail

Prototype Pollution is a vulnerability that allows an attacker to modify the prototype of an object and inject malicious properties or methods. In the case of locutus, the vulnerability exists in the php.strings.parse_str function, which is used to parse query strings. By manipulating the query string, an attacker can inject malicious properties into the resulting object, leading to potential security issues such as remote code execution or information disclosure.

How To Fix

Minimum fixed version

2.0.12

This is the first release that contains the fix.

npm install locutus@2.0.12

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to update to the latest version of locutus to mitigate the risk of exploitation.

Conclusion

In conclusion, the locutus package prior to version 2.0.12 is vulnerable to Prototype Pollution. It is crucial for developers to update their dependencies to the latest version of locutus to mitigate the risk of exploitation. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for locutus →

Share this vulnerability

FAQ

Prototype Pollution is a vulnerability that allows an attacker to modify the prototype of an object and inject malicious properties or methods.

The vulnerability in locutus can lead to potential security issues such as remote code execution or information disclosure.

Yes, updating locutus to version 2.0.12 or later fixes this vulnerability.

There are no known workarounds for this vulnerability. Updating to the latest version of locutus is the recommended solution.

For more information about this vulnerability, you can visit the Vulert Playground at Vulert Scanner

Related vulnerabilities

Recent vulnerabilities recorded for locutus.

How To Fix

Minimum fixed version

2.0.12

This is the first release that contains the fix.

npm install locutus@2.0.12

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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