Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @aws-crypto/client-node
  4. ›
  5. GMS-2021-20

GMS-2021-20: Improper Verification of Cryptographic Signature in aws-encryption-sdk-javascript

June 1, 2021

This ESDK supports a streaming mode where callers may stream the plaintext of signed messages before the ECDSA signature is validated. In addition to these signatures, the ESDK uses AES-GCM encryption and all plaintext is verified before being released to a caller. There is no impact on the integrity of the ciphertext or decrypted plaintext, however some callers may rely on the the ECDSA signature for non-repudiation. Without validating the ECDSA signature, an actor with trusted KMS permissions to decrypt a message may also be able to encrypt messages. This update introduces a new API for callers who wish to stream only unsigned messages.

References

  • github.com/advisories/GHSA-h45p-w933-jxh3
  • github.com/aws/aws-encryption-sdk-javascript/security/advisories/GHSA-h45p-w933-jxh3

Code Behaviors & Features

Detect and mitigate GMS-2021-20 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.9.0, all versions starting from 2.0.0 before 2.2.0

Fixed versions

  • 1.9.0
  • 2.2.0

Solution

Upgrade to versions 1.9.0, 2.2.0 or above.

Source file

npm/@aws-crypto/client-node/GMS-2021-20.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:38 +0000.