crates.io · npm
GHSA-c33x-vcv4-vg3g
Cedar: JSON template is in scope missing slot-id validation allows link panic and decision divergence
- Severity
- Low
- Published
- 29 Oct 2026
- Last changed
- 29 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 3.4.3, 4.11.1
- Sources
- OSV.dev and GitHub
Description
Cedar users must be using all of the following features to be affected by this advisory: JSON format policies, policy templates, and the is in scope condition. This advisory only affects JSON-formatted Cedar policy templates containing is in scope conditions that are malformed according to the Cedar syntax. It does not affect syntactically well-formed policies.
Users of Cedar who author policies in the JSON format were able to write Cedar policies using the is in condition with an incorrect slot identifier in the principal and resource scope constraints (e.g., ?principal in the resource scope constraint) even though this is not allowed when parsing policies from the Cedar policy syntax. Internally, the slot identifiers were silently corrected (e.g. ?resource is placed in the resource scope constraint).
If the policy contains exactly one slot in either the principal or resource position, then any attempt to create a linked policy from the template results in an error: the internal…
Workarounds
If you cannot update to a patched version, you can determine if you are affected by checking your JSON format policy templates for the following two patterns.
and
Affected software
| Software | Affected versions |
|---|---|
cedar-policycrates.io · osv:crates.io:cedar-policy |
|
@cedar-policy/cedar-wasmnpm · osv:npm:@cedar-policy/cedar-wasm |
|
About cedar-policy
- Downloads in the last 90 days (crates.io)
- 4,630,888crates.io, 24 Nov 2026
- Total downloads (crates.io)
- 12,644,798crates.io, 24 Nov 2026
This is the only vulnerability in cedar-policy in our list.
About @cedar-policy/cedar-wasm
- Weekly downloads (npm)
- 868,123npm, 24 Nov 2026
This is the only vulnerability in @cedar-policy/cedar-wasm in our list.
References
- GitHub Advisory Database https://github.com/advisories/GHSA-c33x-vcv4-vg3g