PT-2024-36058 · Directus · Directus
Mastomii
+1
·
Published
2024-12-05
·
Updated
2025-11-19
·
CVE-2024-54128
CVSS v3.1
5.7
Medium
| Vector | AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions:
Directus versions prior to 10.13.4
Directus versions prior to 11.2.0
Description:
The Comment feature in Directus has a filter to prevent users from adding restricted characters, such as HTML tags. However, this filter operates on the client-side, which can be bypassed, making the application vulnerable to HTML Injection. This issue can be exploited by directly sending a request to the endpoint, such as
PATCH /activity/comment/3 HTTP/2, with a payload containing restricted characters, for example, "comment": "<h1>TEST <p style="color:red">HTML INJECTION</p> <a href="//evil.com">Test Link</a></h1>". The introduction of session cookies makes this issue exploitable, allowing a malicious script to perform authenticated actions on the current user's behalf.Recommendations:
For versions prior to 10.13.4, update to version 10.13.4 or later.
For versions prior to 11.2.0, update to version 11.2.0 or later.
As a temporary workaround, consider disabling the Comment feature until a patch is available.
Restrict access to the
/activity/comment endpoint to minimize the risk of exploitation.
Avoid using the comment parameter in the affected API endpoint until the issue is resolved.Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Directus