Prototype Pollution in get-setter

get-setter Updated 02 Oct 2025

Summary

04/09/2020
HIGH
No i
High
Not published

GHSA-ch82-gqh6-9xj9: Prototype Pollution in get-setter. Affects get-setter 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The get-setter package is an npm package that provides a function called set which allows modification of an object's properties. It does not restrict the modification of an object's prototype, which can lead to prototype pollution. Prototype pollution is a vulnerability that occurs when an attacker can inject properties into an object's prototype, potentially leading to unexpected behavior or security issues.

Vulnerability Detail

The vulnerability in get-setter allows an attacker to add or modify properties on an object's prototype, which will then be present on all objects. This can lead to various security issues depending on how the affected objects are used in the application. For example, an attacker could modify a commonly used object's prototype to introduce malicious behavior or access sensitive information. The impact of this vulnerability can range from data integrity issues to remote code execution.

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 there is no fix available, one possible workaround is to manually validate and sanitize any input that is used with the set function from the get-setter package. By ensuring that only trusted and properly validated input is used, the risk of prototype pollution can be mitigated. Here is an example of how to validate input before using the set function:

const getSetter = require('get-setter');

function validateInput(input) {
  // Perform input validation and sanitization
  // Return true if input is valid, false otherwise
}

const safeSet = (obj, key, value) => {
  if (validateInput(key)) {
    getSetter.set(obj, key, value);
  }
};

Conclusion

The get-setter package is vulnerable to prototype pollution, which can have serious security implications. Currently, there is no fix available, but you can mitigate the risk by validating and sanitizing input before using the set function. It is recommended to consider using an alternative package and stay updated with security advisories. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for get-setter →

Share this vulnerability

FAQ

Prototype pollution is a vulnerability that occurs when an attacker can inject properties into an object's prototype, potentially leading to unexpected behavior or security issues.

The impact of this vulnerability can range from data integrity issues to remote code execution, depending on how the affected objects are used in the application.

Currently, there is no fix available for this vulnerability in the get-setter package. It is recommended to consider using an alternative package until a fix is made available.

One possible workaround is to manually validate and sanitize any input that is used with the set function from the get-setter package. By ensuring that only trusted and properly validated input is used, the risk of prototype pollution can be mitigated.

If you are using the get-setter package, it is recommended to consider using an alternative package that does not have this vulnerability until a fix is made available. Additionally, keep the package up to date and regularly check for any security advisories or updates.

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