{"id":"CVE-2023-2304","aliases":["CVE-2023-2304"],"related":[],"kind":"vulnerability","state":"published","title":"Favorites <= 2.3.2 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode","summary":"The Favorites plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'user_favorites' shortcode in versions up to, and including, 2.3.2 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers with contributor-level and above permissions to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The Favorites plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'user_favorites' shortcode in versions up to, and including, 2.3.2 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers with contributor-level and above permissions to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.","source":"cvelist"}],"published":"2023-05-31T04:35:41.279Z","modified":"2026-06-17T05:52:14.463Z","severity":{"scorer":"Wordfence","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"},"severities":[{"scorer":"Wordfence","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"},{"scorer":"NVD","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":[{"type":"semver","introduced":"0","lastAffected":"2.3.2","status":"affected"}],"vendor":"kylephillips","product":"Favorites","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"2.3.2"}],"vendor":"favoriteposts","product":"favorites","cpe":"cpe:2.3:a:favoriteposts:favorites:*:*:*:*:*:wordpress:*:*","source":"nvd"}],"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/5bd03cd0-34f0-491c-8247-79656eba32a8?source=cve","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/favorites/tags/2.3.2/app/API/Shortcodes/UserFavoritesShortcode.php#L57","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/browser/favorites/tags/2.3.2/assets/js/favorites.js#L421","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=2919192%40favorites&old=2805323%40favorites&sfp_email=&sfph_mail=","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["István Márton"],"assigner":"Wordfence","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-01-13T16:21:52.192Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-2304","url":"https://www.cve.org/CVERecord?id=CVE-2023-2304","licence":"CVE Terms of Use","modified":"2026-04-08T16:55:26.799Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-2304","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-2304","licence":"Public domain","modified":"2026-06-17T05:52:14.463Z"}],"updatedAt":"2026-11-25T22:58:24.484Z","epss":{"score":0.00687,"percentile":0.53956,"date":"2026-12-01T12:00:22.000Z"}}