CVE-2026-49858
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedAPI Platform Core is a system to create hypermedia-driven REST and GraphQL APIs. In versions from 2.6.0 prior to 4.1.29, 4.2.26, and 4.3.12, a missing isCacheKeySafe gate in the JSON:API and HAL item normalizers causes a cross-user attribute leak. #[ApiProperty(security: ...)] is evaluated per request to decide whether a property is exposed. The componentsCache arrays in ApiPlatform\JsonApi\Serializer\ItemNormalizer and ApiPlatform\Hal\Serializer\ItemNormalizer are keyed on $context['cache_key'], which is set unconditionally before delegating to the parent normalizer. The component structure (attributes, relationships, links) computed for one request can therefore be reused for a subsequent request whose user has a different set of accessible properties. A user with lower privileges may end up seeing the structure of properties that the security predicate would otherwise have hidden for them. This issue has been fixed in versions 4.1.29, 4.2.26, and 4.3.12.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe JSON:API and HAL item normalizers in API Platform Core cache component structures (attributes, relationships, links) using a cache key set unconditionally before delegating to the parent normalizer. This causes the cache to be shared across requests from different users, allowing a lower-privileged user to see property structures that should be hidden by the #[ApiProperty(security: ...)] predicate.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify API Platform Core versionCheck your composer.json or installed packages for api-platform/core version. Run 'composer show api-platform/core' to see the installed version.Affected if The installed version is below 4.1.29, 4.2.26, or 4.3.12.
-
Confirm JSON:API or HAL support is enabledCheck your API Platform configuration (config/packages/api_platform.yaml or similar) for 'json:api: true' or 'hal: true' under the api_platform entry, or verify these formats are registered in your normalizer/encoder configuration.Affected if JSON:API or HAL formats are enabled in the API Platform configuration.
-
Verify #[ApiProperty(security: ...)] predicates are in useSearch your entity/DTO classes for the #[ApiProperty] attribute with a 'security' parameter, such as #[ApiProperty(security: 'is_granted("ROLE_ADMIN")')].Affected if Your API resources use #[ApiProperty(security: ...)] to restrict property access based on user privileges.
-
Check if caching is enabled for the normalizersInspect your cache configuration (such as Symfony cache pools or framework caching settings) to determine if caching is active for the API Platform normalizer layer.Affected if Caching is enabled and the application serves multiple users with different privilege levels.
You are affected if your API Platform Core version is below 4.1.29/4.2.26/4.3.12, you have JSON:API or HAL enabled, you use #[ApiProperty(security: ...)] predicates, and caching is active for requests from different privilege levels.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade API Platform Core to version 4.1.29, 4.2.26, or 4.3.12 or later to apply the isCacheKeySafe gate fix, then verify that security predicates correctly restrict property exposure across different user privilege levels.
Upgrade to 4.1.29 (for 4.1.x), 4.2.26 (for 4.2.x), or 4.3.12 (for 4.3.x) depending on your current major version
- Check the current version of api-platform/core in your composer.json or composer.lock file
- Determine which major version line you are on (4.1.x, 4.2.x, or 4.3.x)
- Run 'composer require api-platform/core:^4.1.29' for 4.1.x users, 'composer require api-platform/core:^4.2.26' for 4.2.x users, or 'composer require api-platform/core:^4.3.12' for 4.3.x users
- Run 'composer update api-platform/core --with-all-dependencies' to apply the upgrade
- Verify the upgrade was successful by checking the installed version with 'composer show api-platform/core'
- Test that #[ApiProperty(security: ...)] correctly enforces security across different user privilege levels
- Clear any application caches (e.g., 'php bin/console cache:clear')
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,808.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-49858 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-49858 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data