Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐘 Packagist

GHSA-v7m3-fpcr-h7m2

HIGH

GHSA-v7m3-fpcr-h7m2 is a high-severity (CVSS 8.1) Deserialization of Untrusted Data vulnerability in zumba/json-serializer. O3 Security confirms whether GHSA-v7m3-fpcr-h7m2 is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

Zumba Json Serializer has a potential PHP Object Injection via Unrestricted @type in unserialize()

Also known asCVE-2026-27206
Published
Feb 19, 2026
Updated
Feb 23, 2026
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed

Blast Radius

1 pkg affected
🐘zumba/json-serializer

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

Description

Description

The zumba/json-serializer library allows deserialization of PHP objects from JSON using a special @type field.

Prior to version 3.2.3, the deserializer would instantiate any class specified in the @type field without restriction. When processing untrusted JSON input, this behavior may allow an attacker to instantiate arbitrary classes available in the application.

If a vulnerable application passes attacker-controlled JSON into JsonSerializer::unserialize() and contains classes with dangerous magic methods (such as __wakeup() or __destruct()), this may lead to PHP Object Injection and potentially Remote Code Execution (RCE), depending on available gadget chains in the application or its dependencies.

This behavior is similar in risk profile to PHP's native unserialize() when used without the allowed_classes restriction.

Impact

This vulnerability allows instantiation of arbitrary PHP classes via the @type field when deserializing JSON.

Applications are impacted only if:

  • Untrusted or attacker-controlled JSON is passed into JsonSerializer::unserialize(), and
  • The application or its dependencies contain classes that can be leveraged as a gadget chain.

Successful exploitation may lead to:

  • Arbitrary code execution
  • Data exfiltration
  • File manipulation
  • Denial of service

Applications that only deserialize trusted data are not affected.

Patches

This issue is mitigated in version 3.2.3.

Version 3.2.3 introduces the method: setAllowedClasses(?array $allowedClasses)

This allows applications to restrict which classes may be instantiated during deserialization, similar to PHP's native unserialize() allowed_classes option.

Users should upgrade to version 3.2.3 or later and configure an appropriate class allowlist.

Workarounds

If upgrading is not immediately possible, applications should ensure that:

  • JsonSerializer::unserialize() is never called on untrusted or attacker-controlled JSON.
  • JSON input is validated and sanitized before deserialization.
  • Object instantiation via @type is disabled in application logic where possible.

After upgrading, users can mitigate risk by explicitly configuring:

$serializer->setAllowedClasses([]);

to disable all object instantiation, or by providing a strict allowlist of safe classes.

References

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistzumba/json-serializerall versions3.2.3

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for zumba/json-serializer. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update zumba/json-serializer to 3.2.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-v7m3-fpcr-h7m2 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether GHSA-v7m3-fpcr-h7m2 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to GHSA-v7m3-fpcr-h7m2. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

### Description The `zumba/json-serializer` library allows deserialization of PHP objects from JSON using a special `@type` field. Prior to version 3.2.3, the deserializer would instantiate any class specified in the `@type` field without restriction. When processing untrusted JSON input, this behavior may allow an attacker to instantiate arbitrary classes available in the application. If a vulnerable application passes attacker-controlled JSON into JsonSerializer::unserialize() and contains classes with dangerous magic methods (such as `__wakeup()` or `__destruct()`), this may lead to PHP
O3 Security · Impact-Aware SCA

Is GHSA-v7m3-fpcr-h7m2 in your dependencies?

O3 detects GHSA-v7m3-fpcr-h7m2 across Packagist dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.