{"id":"CVE-2024-39310","aliases":["CVE-2024-39310"],"related":[],"kind":"vulnerability","state":"published","title":"WordPress Basil Theme Authenticated (Contributor+) Persistent Cross-Site Scripting Vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"El tema Basil recipe para WordPress es vulnerable a Cross-Site Scripting (XSS) a través del parámetro `post_title` en versiones hasta la 2.0.4 incluida debido a una sanitización de entrada y un escape de salida insuficientes. Esta vulnerabilidad permite a atacantes autenticados con acceso de nivel de colaborador y superior inyectar scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a una página comprometida. Debido a la validación predeterminada de WordPress, no es posible insertar la carga útil directamente, pero si el complemento Cooked está instalado, es posible crear un tipo de publicación de receta (cp_recipe) e inyectar el payload en el campo del título. La versión 2.0.5 contiene un parche para el problema.","source":"nvd"}],"published":"2024-07-01T21:19:35.867Z","modified":"2026-06-17T07:41:41.387Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 2.0.5","status":"affected"}],"vendor":"XjSv","product":"Basil","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"2.0.4","status":"affected"}],"vendor":"xjsv","product":"basil","cpe":"cpe:2.3:a:xjsv:basil:*:*:*:*:*:*:*:*","source":"cvelist"}],"references":[{"url":"https://github.com/XjSv/Basil/security/advisories/GHSA-cr7v-8v2h-49vx","tags":["x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/XjSv/Basil/commit/e2b1dbf1637d1ec2663f9aa1a563b02dc76a8146","tags":["x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-07-03T14:05:01.681Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39310","url":"https://www.cve.org/CVERecord?id=CVE-2024-39310","licence":"CVE Terms of Use","modified":"2024-08-02T04:19:20.713Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39310","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39310","licence":"Public domain","modified":"2026-06-17T07:41:41.387Z"}],"updatedAt":"2026-11-25T22:58:42.425Z","epss":{"score":0.00298,"percentile":0.24184,"date":"2026-12-01T12:00:22.000Z"}}