CVE-2020-28472: Prototype Pollution via file load in aws-sdk and @aws-sdk/shared-ini-file-loader

aws-sdk Updated 02 Oct 2025

Summary

16/11/2021
Yes i
High
7.3

CVE-2020-28472: Prototype Pollution via file load in aws-sdk and @aws-sdk/shared-ini-file-loader. Affects aws-sdk versions < 2.814.0. Fixed in 2.814.0. 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 aws-sdk package is a popular npm package that provides a JavaScript interface for interacting with Amazon Web Services (AWS) APIs. It allows developers to easily integrate AWS services into their applications. The @aws-sdk/shared-ini-file-loader package is a dependency of aws-sdk and is responsible for loading shared configuration files in INI format. These files contain AWS credentials and other configuration settings. The vulnerability in these packages allows an attacker to pollute the prototype of an application by submitting a malicious INI file. This can lead to further exploitation depending on the context.

Vulnerability Detail

The vulnerability, identified as CVE-2020-28472, occurs when an application parses an INI file using the loadSharedConfigFiles function provided by the @aws-sdk/shared-ini-file-loader package. By submitting a specially crafted INI file, an attacker can manipulate the prototype of the application, potentially leading to code execution or other malicious activities. The impact of this vulnerability depends on the context in which the polluted prototype is used.

How To Fix

Latest published version: 2.1693.0 as of 22 Oct 2026

npm install aws-sdk@2.1693.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.814.0

This is the first release that contains the fix.

npm install aws-sdk@2.814.0

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 recommended to update the affected packages to their fixed versions as mentioned in the 'how_to_fix' section.

Conclusion

In conclusion, the aws-sdk and @aws-sdk/shared-ini-file-loader packages are vulnerable to prototype pollution via file load. This vulnerability allows an attacker to pollute the prototype of an application by submitting a malicious INI file. To mitigate this risk, it is crucial to update the affected packages to their fixed versions and implement proper input validation and sanitization when parsing INI files. For further support, you can contact DevNack.com.

See every vulnerability recorded for aws-sdk →

Share this vulnerability

FAQ

Prototype pollution is a vulnerability that occurs when an attacker is able to modify the prototype of an object, allowing them to control or manipulate its behavior. In the context of this vulnerability, an attacker can pollute the prototype of an application by submitting a malicious INI file.

The consequences of this vulnerability depend on the context in which the polluted prototype is used. It could potentially lead to code execution, privilege escalation, or other malicious activities.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your package-lock.json file and the playground will analyze it for any open-source vulnerabilities, including this one.

There are no known public exploits for this vulnerability at the time of writing. However, it is important to update the affected packages to their fixed versions to mitigate the risk.

For further support on vulnerability remediation, you can reach out to info@devnack.com. They can provide guidance and assistance in fixing this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for aws-sdk.

How To Fix

Latest published version: 2.1693.0 as of 22 Oct 2026

npm install aws-sdk@2.1693.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.814.0

This is the first release that contains the fix.

npm install aws-sdk@2.814.0

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