CVE-2024-39310: Basil WordPress Theme - Stored XSS
- Cve: CVE-2024-39310
- Name: Basil WordPress Theme - Stored XSS
- 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.
- Impact: Authenticated attackers can inject and execute malicious scripts on pages, potentially leading to session hijacking or defacement.
- Remediation: Update to version 2.0.5 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: logged_in
- Requirements: Attacker needs contributor-level access or above and the Cooked plugin installed
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00298
- Epss percentile: 0.22581
- Assignee: [email protected]
- Published at: 2024-07-01T22:15:03Z
- Age in days: 876
- Modified at: 2026-06-17T07:41:41Z
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-39310
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/XjSv/Basil/commit/e2b1dbf1637d1ec2663f9aa1a563b02dc76a8146 | nvd | |
| https://github.com/XjSv/Basil/security/advisories/GHSA-cr7v-8v2h-49vx | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| xjsv:basil | <= 2.0.4 | no | adp_cpes | /v1/products/xjsv/basil |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| xjsv/basil | commit, security_advisory | yes | /v1/repositories/xjsv/basil |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts