CVE-2024-6158

MEDIUM
Published Aug 12, 2024 Modified May 27, 2025 CWE-79

Description

The Category Posts Widget WordPress plugin before 4.9.17, term-and-category-based-posts-widget WordPress plugin before 4.9.13 does not validate and escape some of its "Category Posts" widget settings before outputting them back in a page/post where the Widget is embed, which could allow high privilege users such as admin to perform Stored Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed (for example in multisite setup)

Is your site exposed to CVE-2024-6158?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

4.8
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

Weakness Type (CWE)

CWE-79 Cross-site Scripting (XSS)

Affected Products

Vendor Product
tiptoppress term_and_category_based_posts_widget
zephyrwest category_posts_widget

References

Frequently Asked Questions

What is CVE-2024-6158? +
The Category Posts Widget WordPress plugin before 4.9.17, term-and-category-based-posts-widget WordPress plugin before 4.9.13 does not validate and escape some of its "Category Posts" widget settings before outputting them back in a page/post where the Widget is embed, which could allow high privilege users such as admin to perform Stored Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed (for example in multisite setup) It has a CVSS v3.1 base score of 4.8 (MEDIUM).
How severe is CVE-2024-6158? +
CVE-2024-6158 has a CVSS v3.1 score of 4.8 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2024-6158? +
CVE-2024-6158 affects products from tiptoppress, zephyrwest, specifically: category_posts_widget, term_and_category_based_posts_widget. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-6158? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-6158 — free, no signup required.