{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-39310","published":"2024-07-01T22:15:03.483000Z","last_modified":"2026-06-17T07:41:41.387000Z","status":"Deferred","cvss":{"version":"3.1","score":5.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"security-advisories@github.com","primary":false},"auth":true,"cwes":["CWE-79"],"cpes":[],"cpes_truncated":false,"vendors":["xjsv"],"products":["xjsv/basil"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00548,"percentile":0.39506,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":32,"links":{"html_es":"/es/cve/CVE-2024-39310/","html_en":"/en/cve/CVE-2024-39310/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-39310","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-39310"},"untrusted":{"vendor_name":"XjSv","product_name":"Basil","desc_en":"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.","affected":[{"untrusted_vendor":"XjSv","untrusted_product":"Basil","versions":[]}],"references":[{"url":"https://github.com/XjSv/Basil/commit/e2b1dbf1637d1ec2663f9aa1a563b02dc76a8146","tags":[]},{"url":"https://github.com/XjSv/Basil/security/advisories/GHSA-cr7v-8v2h-49vx","tags":[]}]}}