MediumGHSA-rh3c-7wqx-6w95CVE-2015-3257

zend-diactoros Cross-site Scripting (XSS)

Published 17 May 2022 · Updated 23 Apr 2024

Affected package

Affected
>=1.0.0 <1.0.4
Fixed in
1.0.4
Update to the fixed version for your release line, for example:composer require zendframework/zend-diactoros:^1.0.4

Details

Zend/Diactoros/Uri::filterPath in zend-diactoros before 1.0.4 does not properly sanitize path input, which allows remote attackers to perform cross-site scripting (XSS) or open redirect attacks.

Is GHSA-rh3c-7wqx-6w95 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 zendframework/zend-diactoros, and gives you the command that fixes it.

References

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