CVE-2026-40598
Packagist vulnerability
Improper escaping of the redirection page (retrieved from the request's *Referer* header) allows an attacker to inject HTML. While this is generally not directly actionable as modern browsers will URL-encode special characters, on some specific server configurations this could poison the cache, leading to cross-site scripting. ### Impact Cross-site scripting (XSS). ### Patches - b1ebc57763f104eb5f541b7b4d1ce6948168abd9 ### Workarounds None ### Credits Thanks to siunam (Tang Cheuk Hei) for discovering and responsibly reporting the issue.
Affected products
Packagist. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Packagist runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/mantisbt/mantisbt/security/advisories/GHSA-6jh4-47v2-4g37
- github.com/mantisbt/mantisbt/commit/b1ebc57763f104eb5f541b7b4d1ce6948168abd9
- mantisbt.org/bugs/view.php?id=37017
- github.com/advisories/GHSA-6jh4-47v2-4g37
- nvd.nist.gov/vuln/detail/CVE-2026-40598
- nvd.nist.gov/vuln/detail/CVE-2026-40598
- cve.org/CVERecord?id=CVE-2026-40598
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.