Vulnerabilities in pkg:npm/aws-sdk
PACKAGEGHSA-j965-2qgj-vjmq is a LOW (CVSS 3.7) javascript sdk v2 users should vulnerability (CWE-20: Improper Input Validation) affecting Aws sdk libraries in the npm ecosystem. The issue involves javascript sdk v2 users should add validation to the region parameter value in or migrate to v3. Remediation is available in the latest vendor maintenance releases.
pkg:npm/aws-sdk
Vulnerability advisories affecting package pkg:npm/aws-sdk. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-j965-2qgj-vjmq | - | LOW | JavaScript SDK v2 users should add validation to the region parameter value in or migrate to v3 |
| GHSA-rrc9-gqf8-8rwg | CVE-2020-28472 | HIGH | Prototype Pollution via file load in aws-sdk and @aws-sdk/shared-ini-file-loader |
GHSA-j965-2qgj-vjmq at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix GHSA-j965-2qgj-vjmq
To remediate this vulnerability, upgrade all affected Aws sdk dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install aws-sdk@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls aws-sdk
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-j965-2qgj-vjmq, inspect your project dependencies using npm:
npm ls aws-sdk
Analyze the terminal output to locate any version of Aws sdk in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls aws-sdk command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Aws sdk, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-j965-2qgj-vjmq Affected Aws sdk Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aws-sdk
|
npm |
≥ 2.0.0
≤ 3.0.0
|
|
References
Frequently Asked Questions
What is GHSA-j965-2qgj-vjmq?
Which Aws sdk versions are affected?
What version fixes GHSA-j965-2qgj-vjmq?
Is aws-sdk affected?
What is the CVSS score of GHSA-j965-2qgj-vjmq?
What CWE is associated with GHSA-j965-2qgj-vjmq?
How can I check npm dependencies for GHSA-j965-2qgj-vjmq?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j965-2qgj-vjmq",
"modified" : "2026-01-08T22:04:26Z",
"published" : "2026-01-08T22:04:26Z",
"aliases" : [ ],
"summary" : "JavaScript SDK v2 users should add validation to the region parameter value in or migrate to v3",
"details" : "CVSSv3.1 Rating: 3.7 (LOW)\n\nSummary\nThis notification is related to the use of specific values for the region input field when calling AWS services. An actor with access to the environment in which the SDK is used could set the region input field to an invalid value. Per the AWS shared responsibility model, customer applications should protect instances appropriately, or implement proper input sanitization checks. The AWS SDK for JavaScript v2 reached end-of-support on September 8, 2025, but a defense-in-depth enhancement has been implemented in AWS SDK for JavaScript v3. Please migrate to that version.\n\nImpact\nCustomer applications could be configured to improperly route AWS API calls to non-existent or non-AWS hosts. While the SDK itself is functioning as designed, we recommend customers migrate to AWS SDK for JavaScript v3 for continued support and enhanced security features.\n\nImpacted versions: All versions of AWS SDK for JavaScript v2\n\nPatches\nNo security patch is required, this is an informational advisory.\n\nWorkarounds\n- Implement proper input sanitization in your application code\n- Migrate to AWS SDK for JavaScript v3\n- Follow AWS security best practices for SDK configuration\n\nReferences\nContact AWS Security via the vulnerability reporting page or email [aws-security@amazon.com](mailto:aws-security@amazon.com).\n\nAcknowledgement\nAWS Security thanks Guy Arazi for bringing these customer security considerations to our attention through the coordinated disclosure process.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "aws-sdk"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"last_affected" : "3.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aws/aws-sdk-js/security/advisories/GHSA-j965-2qgj-vjmq"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aws/aws-sdk-js"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-01-08T22:04:26Z",
"nvd_published_at" : null
}
}