Access of Resource Using Incompatible Type ('Type Confusion') Affecting com.cedarpolicy:cedar-java package, versions [,4.9.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.58% (45th percentile)

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-COMCEDARPOLICY-18601848
  • published10 Aug 2026
  • disclosed28 Jul 2026
  • creditUnknown

Introduced: 28 Jul 2026

CVE-2026-55771  (opens in a new tab)
CWE-843  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade com.cedarpolicy:cedar-java to version 4.9.0 or higher.

Overview

Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') via the EntityIdentifier.equals() method in CedarJava/src/main/java/com/cedarpolicy/value/EntityIdentifier.java. An attacker can trigger incorrect identity checks by supplying an EntityIdentifier that is compared against null or the same instance, causing code that relies on equals() to treat null as equal and self-comparisons as unequal. This can break application-level authorization or deduplication logic that uses EntityIdentifier objects, leading to unauthorized access decisions or rejected valid identifiers in integrator code.

Workarounds

  • Avoid relying on EntityIdentifier.equals() for security-sensitive comparisons until you upgrade to CedarJava 4.9 or later. This prevents incorrect allow/deny or deduplication decisions caused by the inverted null/self comparison behavior.

CVSS Base Scores

version 4.0
version 3.1