GHSA-j965-2qgj-vjmq: Input Validation
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.
Acknowledgement AWS Security thanks Guy Arazi for bringing these customer security considerations to our attention through the coordinated disclosure process.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
AWS SDK for JavaScriptto a version that resolves this vulnerability.Fixed in v3 - Compensating control
Implement proper input sanitization for the region input field in application code to prevent AWS API calls from being routed to non-existent or non-AWS hosts.
Event History
Frequently Asked Questions
What is the severity of GHSA-j965-2qgj-vjmq?
The severity of GHSA-j965-2qgj-vjmq is rated as 3.7 on the CVSSv3.1 scale, indicating a low-level vulnerability.
How can I mitigate GHSA-j965-2qgj-vjmq?
To mitigate GHSA-j965-2qgj-vjmq, ensure the region input field is validated and restricted to safe, predefined values before calling AWS services.
Which versions of AWS SDK are affected by GHSA-j965-2qgj-vjmq?
GHSA-j965-2qgj-vjmq affects the AWS SDK versions 2.0.0 to 3.0.0.
What could happen if GHSA-j965-2qgj-vjmq is exploited?
If GHSA-j965-2qgj-vjmq is exploited, an attacker could set invalid region values that could cause unexpected behavior in AWS service calls.
Is GHSA-j965-2qgj-vjmq a client-side or server-side vulnerability?
GHSA-j965-2qgj-vjmq is primarily a client-side vulnerability associated with the use of the AWS SDK in application environments.