MediumGHSA-v68g-62v9-39w5CVE-2022-29858

Unpublished, protected files can be published via shortcode

Published 29 Jun 2022 · Updated 21 Feb 2024

Affected package

Affected
>=1.0.0 <1.10.1
Fixed in
1.10.1
Update to the fixed version for your release line, for example:composer require silverstripe/assets:^1.10.1

Details

Silverstripe silverstripe/assets through 1.10 is vulnerable to improper access control that allows protected images to be published by changing an existing image short code on website content. Draft protected images can be published by changing an existing image shortcode on website content to match the ID of the draft protected image and then publishing the website content.

Is GHSA-v68g-62v9-39w5 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 silverstripe/assets, and gives you the command that fixes it.

References

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