CVE-2026-104002: Fail-open masking bug in Powertools for Lambda (Python) can leak masked data
AWS disclosed CVE-2026-104002, a fail-open error handling flaw in the data masking utility of Powertools for AWS Lambda (Python). Versions 3.6.0 through 3.34.0 are affected; when masking errors occur, the utility could return the original unmasked value instead of failing safely, potentially exposing sensitive field values. The issue is fixed in version 3.35.0.
SECURITY · DEVOPS · DATA · VULNERABILITY · SECURITY ADVISORY
PUBLISHED OCT 22, 2026 15:02 UTC
WHAT CHANGED
In affected versions, errors during data masking operations caused the utility to fail open, returning the original sensitive value rather than a masked placeholder. The fix in version 3.35.0 changes this behavior so masking errors now raise a DataMaskingError exception instead of silently returning unmasked data. No workaround is available for versions prior to the fix.
WHY IT MATTERS
Applications relying on this utility to mask sensitive fields (e.g., for logging or output sanitization) may have inadvertently exposed unmasked sensitive values whenever a masking error occurred, without any indication of failure. Administrators and developers using affected versions should upgrade promptly since no workaround exists, and should audit any forked or derivative code that reimplements the masking logic.
WHO IS AFFECTED
- ROLES
- Developers using the data masking utility in Powertools for AWS Lambda (Python)
- PRODUCTS
- Powertools for AWS Lambda (Python)
- FEATURES
- Data masking utility
- CONFIGURATIONS
- Versions >=3.6.0 and <=3.34.0
WHAT TO DO
- 01CRITICALAUTOMATABLE
Upgrade Powertools for AWS Lambda (Python) to version 3.35.0 or later, where masking errors now raise a DataMaskingError instead of returning unmasked values.
- 02HIGH
Audit any forked or derivative code bases that incorporate the data masking utility and apply the same fix for fail-open error handling.
- 03HIGH
Treat this as urgent since no workaround exists; prioritize patch deployment over mitigation.
TIMELINE
- ANNOUNCED
- OCT 1, 2026
SOURCES
- PRIMARY SOURCEAMAZON WEB SERVICES
CVE-2026-104002: Fail-open error handling in the data masking utility in Powertools for AWS Lambda (Python)
PUBLISHED OCT 1, 2026VIEW SOURCE
VERIFICATION
ShiftWire summarizes and analyzes changes from the cited sources. Always review the primary source before implementing material changes.