MediumGHSA-g5vj-wj9x-4jg9

symbiote/silverstripe-multivaluefield Possible PHP Object Injection via Multi-Value Field Extension

Published 29 May 2024 · Updated 4 Dec 2024

Is your project on an affected symbiote/silverstripe-multivaluefield?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
>=3.0.0 <3.1.0
Fixed in
3.1.0
Update to the fixed version for your release line, for example:composer require symbiote/silverstripe-multivaluefield:^3.1.0

Details

A potential deserialisation vulnerability has been identified in the symbiote/silverstripe-multivaluefield which could allow an attacker to exploit implementations of this module via object injection.

Support for handling PHP objects as values in this module has been deprecated, and the serialisation technique has been switched to using JSON for handling arrays.

As well as this, a potential XSS (cross-site scripting) vulnerability has been identified and remediated.

Is GHSA-g5vj-wj9x-4jg9 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected symbiote/silverstripe-multivaluefield, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.