MEDIUM

CVE-2026-9620

2026-06-24 CVSS v3.1
CVSS
6.4

Description

The WP Latest Posts plugin for WordPress is vulnerable to Stored Cross-Site Scripting via crafted image src attributes in post content in versions up to, and including, 5.0.11. This is due to insufficient output escaping in the field() and loop() functions, which extract the raw src attribute value from <img> tags within post_content using a regular expression and then reconstruct new <img> elements or CSS background-image declarations by directly concatenating the unescaped value — bypassing WordPress's kses filtering entirely. This makes it possible for authenticated attackers, with author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

Summary dbcve.org

The WP Latest Posts plugin for WordPress versions up to 5.0.11 contains a Stored Cross-Site Scripting vulnerability in the field() and loop() functions. These functions extract raw src attribute values from <img> tags within post_content using regular expressions and reconstruct new <img> elements or CSS background-image declarations by directly concatenating the unescaped value, bypassing WordPress's kses filtering entirely.

Mitigation

Update the plugin to version 5.0.12 or later which should include proper output escaping. Until patched, review pages using the plugin for injected malicious scripts.

Weakness (CWE)

CWE-79 Cross-site Scripting (XSS)

EPSS Score

0.36%
Probability of exploitation in next 30 days
29.4th percentile

References

View on dbcve.org
Base CVE data derived from NVD (public domain). Enrichment by dbcve.org (CC-BY-4.0). Fetched via API.
Back to CVE