{"answers":{"affected":"8 open source packages ship an affected version, including cedar-policy and @cedar-policy/cedar-wasm.","exploited":"There is no known exploitation of GHSA-c33x-vcv4-vg3g in the wild and no public exploit code.","fix":"Upgrade cedar-policy to a fixed version for your release line: 3.4.3 or 4.11.1.","what":"GHSA-c33x-vcv4-vg3g is a vulnerability in cedar-policy, published on 29 Oct 2026."},"fix_prompt":"Check this codebase for GHSA-c33x-vcv4-vg3g and fix it if it is affected.\n\nWhat it is: GHSA-c33x-vcv4-vg3g is a vulnerability in cedar-policy, published on 29 Oct 2026. \nExploitation: There is no known exploitation of GHSA-c33x-vcv4-vg3g in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cedar-policy (crates.io): affected from 3.0.0; fixed in 3.4.3\n- cedar-policy (crates.io): affected from 3.0.0; fixed in 3.4.3\n- cedar-policy (crates.io): affected from 4.0.0; fixed in 4.11.1\n- cedar-policy (crates.io): affected from 4.0.0; fixed in 4.11.1\n- @cedar-policy/cedar-wasm (npm): affected from 3.2.0; fixed in 3.4.3\n- @cedar-policy/cedar-wasm (npm): affected from 3.2.0; fixed in 3.4.3\n- @cedar-policy/cedar-wasm (npm): affected from 4.0.1; fixed in 4.11.1\n- @cedar-policy/cedar-wasm (npm): affected from 4.0.1; fixed in 4.11.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-c33x-vcv4-vg3g/ (Markdown: https://insights.sbomify.com/GHSA-c33x-vcv4-vg3g/index.md)","id":"GHSA-c33x-vcv4-vg3g","markdown":"https://insights.sbomify.com/GHSA-c33x-vcv4-vg3g/index.md","name":"GHSA-c33x-vcv4-vg3g","record":{"aliases":[],"analysis":null,"analysis_generated_by":null,"assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"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.\n\nUsers 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). \n\nIf 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 representation of the template does not contain the slot identifier as written in the malformed JSON policy (it has been corrected silently), so attempting to fill that slot is an error. If instead the template is linked using slot identifier expected internally (i.e., not what is written in the JSON template), the linking will initially succeed, but a subsequent invariant violation will cause a panic.\n\nWhen the template contains *slots in both the principal and resource* position, then both slots will be present in the internal representation: linking succeeds, but with each slot bound to the value intended for the other (the silent correction). The linked policy is then semantically different from the malformed policy the user intended, and any subsequent authorization decision made against that policy may lead to accesses being unintentionally allowed or denied.\n\nConcretely, consider the following JSON format policy template intended to deny users in a particular project from accessing documents with a particular classification.\n```\n{\n  \"effect\": \"forbid\",\n  \"principal\": {\n    \"op\": \"is\",\n    \"entity_type\": \"User\",\n    \"in\": { \"slot\": \"?resource\" }\n  },\n  \"action\": { \"op\": \"All\" },\n  \"resource\": {\n    \"op\": \"is\",\n    \"entity_type\": \"Doc\",\n    \"in\": { \"slot\": \"?principal\" }\n  },\n  \"conditions\": []\n}\n```\n\nLinked with `?principal = Classification::\"topsecret\"` and `?resource = Project::\"alpha\"`, the author expects to create the policy:\n```\nforbid(principal is User in Project::\"alpha\", action, resource is Doc in Classification::\"topsecret\");\n```\n\nBut because Cedar internally links slots by scope position (not by name), the actual policy evaluated by the engine is:\n```\nforbid(principal is User in Classification::\"topsecret\", action, resource is Doc in Project::\"alpha\");\n```\n\nIf a user is in `Project::\"alpha\"` but not `Classification::\"topsecret\"`, the `forbid` policy does not apply, and access is unintentionally allowed.\n\n## Patches\n\nThis advisory is patched in version 4.11.1 and 3.4.3, both available on Crates.io and NPM.\n\n## Workarounds\n\nIf 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.\n\n```\n  \"principal\": {\n    \"op\": \"is\",\n    \"entity_type\": \"User\",\n    \"in\": { \"slot\": \"?resource\" }\n  }\n```\n\nand\n```\n  \"resource\": {\n    \"op\": \"is\",\n    \"entity_type\": \"Doc\",\n    \"in\": { \"slot\": \"?principal\" }\n  }\n```\n\n## References\n* [Cedar Policy Language Reference Guide - Cedar Policy Templates](https://docs.cedarpolicy.com/policies/templates.html)\n* [Cedar Policy Language Reference Guide - JSON Policy Format](https://docs.cedarpolicy.com/policies/json-format.html)","ecosystems":["crates.io","npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Cedar: JSON template is in scope missing slot-id validation allows link panic and decision divergence","id":"GHSA-c33x-vcv4-vg3g","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":null,"year":"2026"},"n_packages":8,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["3.4.3"],"introduced":["3.0.0"],"last_affected":[],"package":"cedar-policy","purl":null,"source":"GHSA-c33x-vcv4-vg3g"},{"ecosystem":"crates.io","fixed":["3.4.3"],"introduced":["3.0.0"],"last_affected":[],"package":"cedar-policy","purl":"pkg:cargo/cedar-policy","source":"GHSA-c33x-vcv4-vg3g"},{"ecosystem":"crates.io","fixed":["4.11.1"],"introduced":["4.0.0"],"last_affected":[],"package":"cedar-policy","purl":null,"source":"GHSA-c33x-vcv4-vg3g"},{"ecosystem":"crates.io","fixed":["4.11.1"],"introduced":["4.0.0"],"last_affected":[],"package":"cedar-policy","purl":"pkg:cargo/cedar-policy","source":"GHSA-c33x-vcv4-vg3g"},{"ecosystem":"npm","fixed":["3.4.3"],"introduced":["3.2.0"],"last_affected":[],"package":"@cedar-policy/cedar-wasm","purl":null,"source":"GHSA-c33x-vcv4-vg3g"},{"ecosystem":"npm","fixed":["3.4.3"],"introduced":["3.2.0"],"last_affected":[],"package":"@cedar-policy/cedar-wasm","purl":"pkg:npm/%40cedar-policy/cedar-wasm","source":"GHSA-c33x-vcv4-vg3g"},{"ecosystem":"npm","fixed":["4.11.1"],"introduced":["4.0.1"],"last_affected":[],"package":"@cedar-policy/cedar-wasm","purl":null,"source":"GHSA-c33x-vcv4-vg3g"},{"ecosystem":"npm","fixed":["4.11.1"],"introduced":["4.0.1"],"last_affected":[],"package":"@cedar-policy/cedar-wasm","purl":"pkg:npm/%40cedar-policy/cedar-wasm","source":"GHSA-c33x-vcv4-vg3g"}],"products":null,"published":"2026-10-29","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":null,"url":"https://insights.sbomify.com/GHSA-c33x-vcv4-vg3g/"}