CVE-2022-25862: Prototype Pollution in sds

sds Updated 02 Oct 2025

Summary

14/05/2022
No i
High
7.5

CVE-2022-25862: Prototype Pollution in sds. Affects sds versions < 4.4.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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The sds package is an npm package that provides a simple data structure library for JavaScript. It is used to manipulate strings and provides various utility functions. The library is vulnerable to prototype pollution, which allows an attacker to modify or add properties to the Object.prototype. This vulnerability is due to an incomplete fix for a previous vulnerability (CVE-2020-7618).

Vulnerability Detail

The vulnerability in sds arises from the set function located in js/set.js. By exploiting this function, an attacker can manipulate the Object.prototype, potentially leading to various security issues. This could include bypassing security controls, executing arbitrary code, or causing unexpected behavior in applications that use the sds library. The vulnerability affects versions 0.0.0 to 4.4.0 of the sds package.

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 →

Workaround

As a workaround, developers can consider using alternative libraries that are not affected by this vulnerability. It is important to carefully evaluate the security of any alternative library before integrating it into the application.

Conclusion

The sds package is vulnerable to prototype pollution, which can have serious security implications. It is crucial for developers to update their dependencies to the latest version of the sds package (version 4.4.1) to mitigate this vulnerability. Additionally, considering alternative libraries that are not affected by this vulnerability can provide an extra layer of security. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for sds →

Share this vulnerability

FAQ

Prototype pollution is a vulnerability that allows an attacker to modify the prototype of an object, leading to unexpected behavior or security issues in the application.

An attacker can exploit this vulnerability by crafting malicious input that triggers the vulnerable set function in the sds library, allowing them to modify the Object.prototype.

The consequences of this vulnerability can vary depending on how it is exploited. It could lead to bypassing security controls, executing arbitrary code, or causing unexpected behavior in the application.

Yes, the maintainers of the sds package have released a patch in version 4.4.1 that addresses this vulnerability. It is recommended to update to the latest version of the sds package.

Yes, developers can consider using alternative libraries that are not affected by this vulnerability. However, it is important to carefully evaluate the security of any alternative library before integrating it into the application.

Related vulnerabilities

Recent vulnerabilities recorded for sds.

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