CVE-2021-23408: Prototype Pollution in GraphHopper

Summary

02/08/2021
Yes i
Moderate
5.4

CVE-2021-23408: Prototype Pollution in GraphHopper. Affects com.graphhopper:graphhopper-web-bundle versions < 3.2. Fixed in 3.2. 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

GraphHopper is a package in the Maven ecosystem that provides routing and navigation capabilities. The com.graphhopper:graphhopper-web-bundle package, specifically versions before 3.2, from 4.0-pre1, and before 4.0, is affected by a vulnerability. This vulnerability allows the URL parser to be manipulated, leading to the addition or modification of properties in Object.prototype using constructor or __proto__ payloads.

Vulnerability Detail

The vulnerability in GraphHopper's com.graphhopper:graphhopper-web-bundle package arises from a lack of proper input validation in the URL parser. By exploiting this, an attacker can inject malicious payloads that manipulate the Object.prototype and potentially impact the behavior of the application. This could lead to various security issues, such as remote code execution or privilege escalation. The severity of this vulnerability is rated as MODERATE with a CVSS score of 5.4.

How To Fix

Minimum fixed version

3.2

This is the first release that contains the fix.

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

Workaround

There is no specific workaround provided for this vulnerability. It is crucial to update to the fixed version of the package to mitigate the risk.

Conclusion

The vulnerability in GraphHopper's com.graphhopper:graphhopper-web-bundle package allows for prototype pollution, potentially leading to security risks such as remote code execution or privilege escalation. It is crucial to update to version 3.2 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for com.graphhopper:graphhopper-web-bundle →

Share this vulnerability

FAQ

This vulnerability allows an attacker to manipulate the Object.prototype and potentially execute arbitrary code or escalate privileges within the affected application.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities using just the pom.xml file.

Yes, upgrading to version 3.2 or later of the com.graphhopper:graphhopper-web-bundle package fixes this vulnerability.

There are no known public exploits available for this vulnerability at the time of this report.

How To Fix

Minimum fixed version

3.2

This is the first release that contains the fix.

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