GHSA-7733-hjv6-4h47
Cross-Site Scripting in ternary conditional operator
Quick fix
GHSA-7733-hjv6-4h47 — typo3fluid/fluid: upgrade to the fixed version with the command below.
composer require typo3fluid/fluid:^2.0.5Details
> ### Meta > * CVSS: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N/E:F/RL:O/RC:C`(5.0) > * CWE-79
---
:information_source: This vulnerability has been fixed in May 2019 already, CVE and GHSA were assigned later in October 2020
---
### Problem It has been discovered that the Fluid Engine (package `typo3fluid/fluid`) is vulnerable to cross-site scripting when making use of the ternary conditional operator in templates like the following.
``` {showFullName ? fullName : defaultValue} ```
### Solution Update to versions 2.0.5, 2.1.4, 2.2.1, 2.3.5, 2.4.1, 2.5.5 or 2.6.1 of this `typo3fluid/fluid` package that fix the problem described.
Updated versions of this package are bundled in following TYPO3 (`typo3/cms-core`) releases: * TYPO3 v8.7.25 (using `typo3fluid/fluid` v2.5.5) * TYPO3 v9.5.6 (using `typo3fluid/fluid` v2.6.1)
### Credits Thanks to Bill Dagou who reported this issue and to TYPO3 core merger Claus Due who fixed the issue.
### References * [TYPO3-CORE-SA-2019-013](https://typo3.org/security/advisory/typo3-core-sa-2019-013)
Are you affected?
Enter the version of the package you're using.
Affected packages
2.0.0Fixed in: 2.0.5composer require typo3fluid/fluid:^2.0.52.1.0Fixed in: 2.1.4composer require typo3fluid/fluid:^2.1.42.2.0Fixed in: 2.2.1composer require typo3fluid/fluid:^2.2.12.3.0Fixed in: 2.3.5composer require typo3fluid/fluid:^2.3.52.4.0Fixed in: 2.4.1composer require typo3fluid/fluid:^2.4.12.5.0Fixed in: 2.5.5composer require typo3fluid/fluid:^2.5.52.6.0Fixed in: 2.6.1composer require typo3fluid/fluid:^2.6.18.0.0Fixed in: 8.7.25composer require typo3/cms-core:^8.7.259.0.0Fixed in: 9.5.6composer require typo3/cms-core:^9.5.6References
- https://github.com/TYPO3/Fluid/security/advisories/GHSA-7733-hjv6-4h47[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2020-15241[ADVISORY]
- https://github.com/TYPO3/Fluid/commit/9ef6a8ffff2e812025fc0701b4ce72eea6911a3d[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms-core/CVE-2020-15241.yaml[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms/CVE-2020-15241.yaml[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3fluid/fluid/CVE-2020-15241.yaml[WEB]
- https://github.com/TYPO3/Fluid[PACKAGE]
- https://typo3.org/security/advisory/typo3-core-sa-2019-013[WEB]