GHSA-m8x6-6r63-qvj2
Cross site scripting via canonical tag in Contao
Quick fix
GHSA-m8x6-6r63-qvj2 — contao/core-bundle: upgrade to the fixed version with the command below.
composer require contao/core-bundle:^4.13.3Details
### Impact
Untrusted users can inject malicious code into the canonical tag, which is then executed on the web page (front end).
### Patches
Update to Contao 4.13.3.
### Workarounds
Disable canonical tags in the root page settings.
### References
https://contao.org/en/security-advisories/cross-site-scripting-via-canonical-url
### For more information
If you have any questions or comments about this advisory, open an issue in [contao/contao](https://github.com/contao/contao/issues/new/choose).
Are you affected?
Enter the version of the package you're using.
Affected packages
4.13.0Fixed in: 4.13.3composer require contao/core-bundle:^4.13.34.13.0Fixed in: 4.13.3composer require contao/contao:^4.13.3References
- https://github.com/contao/contao/security/advisories/GHSA-m8x6-6r63-qvj2[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2022-24899[ADVISORY]
- https://github.com/contao/contao/commit/199206849a87ddd0fa5cf674eb3c58292fd8366c[WEB]
- https://contao.org/en/security-advisories/cross-site-scripting-via-canonical-url.html[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2022-24899.yaml[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2022-24899.yaml[WEB]
- https://github.com/contao/contao[PACKAGE]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/contao/core-bundle"]}'