HighGHSA-4j9x-g4x8-vcmf

ZendFramework potential XML eXternal Entity injection vectors

Published 7 Jun 2024 · Updated 4 Dec 2024

Affected packages

Affected
>=1.11.0 <1.11.15
Fixed in
1.11.15
Update to the fixed version for your release line, for example:composer require zendframework/zendframework1:^1.11.15
Affected
>=1.12.0 <1.12.1
Fixed in
1.12.1
Update to the fixed version for your release line, for example:composer require zendframework/zendframework1:^1.12.1

Details

Zend_Feed_Rss and Zend_Feed_Atom were found to contain potential XML eXternal Entity (XXE) vectors due to insecure usage of PHP's DOM extension. External entities could be specified by adding a specific DOCTYPE element to feeds; exploiting this vulnerability could coerce opening arbitrary files and/or TCP connections.

A similar issue was fixed for 1.11.13 and 1.12.0, in the Zend_Feed::import() factory method; however, the reporter of the issue discovered that the individual classes contained similar functionality in their constructors which remained vulnerable.

Is GHSA-4j9x-g4x8-vcmf 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/zendframework1, and gives you the command that fixes it.

References

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