CVE-2021-24826 Custom Content Shortcode < 4.0.2 - Authenticated Stored Cross-Site Scripting
Authenticated users can inject malicious scripts via unescaped custom fields, allowing code execution in the context of other users.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-24826?
CVE-2021-24826 is a medium-severity cross-site scripting vulnerability in Unknown Custom Content Shortcode, published on 7 Mar 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
The Custom Content Shortcode WordPress plugin before 4.0.2 does not escape custom fields before outputting them, which could allow Contributor+ (v < 4.0.1) or Admin+ (v < 4.0.2) users to perform Cross-Site Scripting attacks even when the unfiltered_html is disallowed. Please note that such attack is still possible by admin+ in single site blogs by default (but won't be when the unfiltered_html is disallowed)
Weakness: CWE-79
Which versions are affected by CVE-2021-24826?
It affects 1 product.
Products include Custom Content Shortcode Project Custom Content Shortcode.
How do I fix CVE-2021-24826?
No fix has been published for CVE-2021-24826 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-24826 being exploited?
There is no known exploitation of CVE-2021-24826 in the wild and no public exploit code.
Other vulnerabilities in Unknown Custom Content Shortcode
- CVE-2023-0340 Custom Content Shortcode <= 4.0.2 - Contributor+ LFI
- CVE-2023-0273 Custom Content Shortcode <= 4.0.2 - Contributor+ Stored XSS
- CVE-2021-24824 Custom Content Shortcode < 4.0.1 - Unauthorised Arbitrary Post Metadata Access
- CVE-2021-24825 Custom Content Shortcode < 4.0.2 - Authenticated Arbitrary File Access / LFI
Sources
Also known as GHSA-h77p-7f34-7fqv.