Intel

AIKIDO-2026-158758

aws-lambda-powertools is vulnerable to Information Disclosure

CVE-2026-104002Published Oct 6, 2026
October 6, 2026

53

CVE Score

Medium

Information Disclosure

Are you affected? Scan for Free

TL;DR

The DataMasking.erase helper in the data masking utility catches invalid masking expressions and provider errors and returns the original field value instead of failing. An invalid regular expression in the masking configuration or an exception raised by a custom provider's erase implementation triggers this path silently. Applications that treat the result as masked can then write the unmasked sensitive field to a downstream destination such as CloudWatch Logs or S3. The patch raises DataMaskingError on these failures instead of returning the original value.

How do I fix this?

Upgrade the aws-lambda-powertools library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use the data masking utility's erase method with a masking expression or a custom provider that can raise an error.

Versions

3.6.0 - 3.34.0

Fixed in 3.35.0

Background info

aws-lambda-powertools is vulnerable to Information Disclosure in versions 3.6.0 - 3.34.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea