MediumGHSA-vv3r-fxqp-vr3fCVE-2022-38147
XSS via uploaded gpx file
Published 21 Nov 2022 · Updated 20 Feb 2024
Affected package
silverstripe/assetsComposer
- Affected
- >=1.0.0 <1.11.1
- Fixed in
- 1.11.1
Update to the fixed version for your release line, for example:
composer require silverstripe/assets:^1.11.1Details
A malicious content author could upload a GPX file with a Javascript payload. The payload could then be executed by luring a legitimate user to view the file in a browser with support for GPX files. GPX is an XML-based format used to store GPS data.
By default, Silverstripe CMS will no longer allow GPX files to be uploaded to the assets area.
Is GHSA-vv3r-fxqp-vr3f 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
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-38147
- Linkforum.silverstripe.org/c/releases
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/assets/CVE-2022-38147.yaml
- Linkwww.silverstripe.org/blog/tag/release
- Linkwww.silverstripe.org/download/security-releases
- Linkwww.silverstripe.org/download/security-releases/cve-2022-38147
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.