Security mailing lists by PureSourceCode

CVE-2026-49858

MEDIUM 5.9CVSS 3.1

API Platform Core vulnerable to cross-user attribute leak in JSON:API and HAL item normalizers due to missing isCacheKeySafe gate

API 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.

Published
1 Jul 2026
Last modified
10 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Awaiting Analysis
Weakness
CWE-524CWE-639
Also known as
GHSA-pjhx-3c3w-9v23
Sources
NVDJSONOSV GHSA-pjhx-3c3w-9v23JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Packagist api-platform/core >= 2.6.0, < 4.1.29 4.1.29
OSV Packagist api-platform/core >= 4.2.0, < 4.2.25 4.2.25
OSV Packagist api-platform/core >= 4.3.0, < 4.3.8 4.3.8
OSV Packagist api-platform/json-api >= 4.0.0, < 4.1.29 4.1.29
OSV Packagist api-platform/json-api >= 4.2.0, < 4.2.25 4.2.25
OSV Packagist api-platform/json-api >= 4.3.0, < 4.3.8 4.3.8
OSV Packagist api-platform/hal >= 4.0.0, < 4.1.29 4.1.29
OSV Packagist api-platform/hal >= 4.2.0, < 4.2.25 4.2.25
OSV Packagist api-platform/hal >= 4.3.0, < 4.3.8 4.3.8

References

History

  • 25 Nov 2026 21:03 UTC · NVD: first stored (published 1 Jul 2026)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 10 Jul 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.