# CVE-2024-21731: [20240703] - Core - XSS in StringHelper::truncate method

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2024-07-09T16:15:43.351Z
- Modified: 2026-09-08T08:48:02.298Z
- Also known as: BIT-JOOMLA-2024-21731
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Joomla

## Description

Improper handling of input could lead to an XSS vector in the StringHelper::truncate method.

(As written by CVE List.)

## Affected

- Joomla! Project Joomla! CMS: 3.0.0-3.10.15; 4.0.0-4.4.5; 5.0.0-5.1.1
- joomla joomla!: from 3.0.0 up to 3.10.15; from 4.0.0 up to 4.4.5; from 5.0.0 up to 5.1.1
- joomla (Bitnami): from 3.0.0 before 5.1.2

## Every score

- CISA-ADP: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://developer.joomla.org/security-centre/937-20240703-core-xss-in-stringhelper-truncate-method.html> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21731> (web)

## Sources

- CVE List: [CVE-2024-21731](https://www.cve.org/CVERecord?id=CVE-2024-21731), CVE Terms of Use, modified 2025-03-14
- NVD: [CVE-2024-21731](https://nvd.nist.gov/vuln/detail/CVE-2024-21731), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-JOOMLA-2024-21731](https://osv.dev/vulnerability/BIT-JOOMLA-2024-21731), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-21731 · Whole record: https://cve.day/CVE-2024-21731.json · Rebuilt by cve.day 2026-11-25T22:58:42.632Z
