packagist package report

Is zumba/json-serializer safe?

1 known vulnerability, worst severity HIGH.

// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    dependents not yet indexed for this ecosystem

      Create a free accountfor every dependency path, dependent and what to upgrade
      // ai model usage

      Tracked for PyPI packages. HuggingFace models declare Python dependencies, so packagist packages are not covered.


      cvss
      8.1
      high

      CVSS v3.1 base score out of 10

      epss
      0.83%
      medium

      chance of exploitation in 30 days, 58th percentile of all CVEs

      xyz score
      3.4
      low

      CyberXYZ composite out of 10

      fig. 01 — GHSA-v7m3-fpcr-h7m2, the advisory selected below

      // 1 advisories

      GHSA-v7m3-fpcr-h7m2

      HIGHGitHub ratingCVE-2026-27206
      // 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
      // cvss v3.1 vector

      CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

      Attack vector
      Network
      Attack complexity
      High
      Privileges required
      None
      User interaction
      None
      Scope
      Unchanged
      Confidentiality
      High
      Integrity
      High
      Availability
      High

      Checked 2026-11-07 at 22:51 UTC. The most recent advisory here was published 2026-02-19. Updated continuously from NVD, GHSA, OSV and CNA feeds.

      Think a verdict here is wrong? Tell us — we respond within 2 business days.