GHSA-j965-2qgj-vjmq: Aws sdk JavaScript SDK V2 Users Should Vulnerability

LOW
CVSS 3.7
CWE-20
Published
Advisory Summary

GHSA-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.

GHSA-j965-2qgj-vjmq at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-j965-2qgj-vjmq
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-20: Improper Input Validation
Affected Product Aws sdk
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

aws-sdk fixed: Latest secure release
npm install aws-sdk@Latest secure release
Verify Direct and Transitive Dependencies

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

CVSSv3.1 Rating: 3.7 (LOW) Summary This 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. Impact Customer 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. Impacted versions: All versions of AWS SDK for JavaScript v2 Patches No security patch is required, this is an informational advisory. Workarounds - Implement proper input sanitization in your application code - Migrate to AWS SDK for JavaScript v3 - Follow AWS security best practices for SDK configuration References Contact AWS Security via the vulnerability reporting page or email [aws-security@amazon.com](mailto:aws-security@amazon.com). Acknowledgement AWS Security thanks Guy Arazi for bringing these customer security considerations to our attention through the coordinated disclosure process.

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?
GHSA-j965-2qgj-vjmq is a security vulnerability in Aws sdk involving JavaScript SDK v2 users should add validation to the region parameter value in or migrate to v3 under CWE-20: Improper Input Validation.
Which Aws sdk versions are affected?
Affected versions include releases prior to current release patches across affected packages: aws-sdk.
What version fixes GHSA-j965-2qgj-vjmq?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is aws-sdk affected?
Yes, aws-sdk is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of GHSA-j965-2qgj-vjmq?
GHSA-j965-2qgj-vjmq has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with GHSA-j965-2qgj-vjmq?
GHSA-j965-2qgj-vjmq is classified under CWE-20: Improper Input Validation (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.).
How can I check npm dependencies for GHSA-j965-2qgj-vjmq?
Run the dependency tree command: 'npm ls aws-sdk'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}