Improper Encoding or Escaping of Output Affecting software.amazon.awssdk:cloudfront package, versions [2.18.33,2.41.30)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-SOFTWAREAMAZONAWSSDK-15810116
  • published29 Mar 2026
  • disclosed27 Mar 2026
  • creditUnknown

Introduced: 27 Mar 2026

CVE NOT AVAILABLE CWE-116  (opens in a new tab)

How to fix?

Upgrade software.amazon.awssdk:cloudfront to version 2.41.30 or higher.

Overview

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output through the buildCannedPolicy and buildCustomPolicy functions in the CloudFront signing utilities. An attacker can alter the generated CloudFront policy document and weaken access restrictions by supplying crafted resourceUrl or ipAddress values containing special characters. The issue affects applications that pass untrusted input into CloudFront signed URL or signed cookie generation, where the resulting policy is later used to enforce access control.

CVSS Base Scores

version 4.0
version 3.1