# CVE-2024-39310: WordPress Basil Theme Authenticated (Contributor+) Persistent Cross-Site Scripting Vulnerability

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/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.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2024-07-01T21:19:35.867Z
- Modified: 2026-06-17T07:41:41.387Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

The Basil recipe theme for WordPress is vulnerable to Persistent Cross-Site Scripting (XSS) via the `post_title` parameter in versions up to, and including, 2.0.4 due to insufficient input sanitization and output escaping. This vulnerability allows authenticated attackers with contributor-level access and above to inject arbitrary web scripts in pages that will execute whenever a user accesses a compromised page. Because the of the default WordPress validation, it is not possible to insert the payload directly but if the Cooked plugin is installed, it is possible to create a recipe post type (cp_recipe) and inject the payload in the title field. Version 2.0.5 contains a patch for the issue.

(As written by CVE List.)

## Affected

- XjSv Basil: < 2.0.5; up to 2.0.4

## References

- <https://github.com/XjSv/Basil/security/advisories/GHSA-cr7v-8v2h-49vx>
- <https://github.com/XjSv/Basil/commit/e2b1dbf1637d1ec2663f9aa1a563b02dc76a8146>

## Sources

- CVE List: [CVE-2024-39310](https://www.cve.org/CVERecord?id=CVE-2024-39310), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-39310](https://nvd.nist.gov/vuln/detail/CVE-2024-39310), Public domain, modified 2026-06-17

---

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