{"id":"CVE-2023-4774","summary":"WP-Matomo Integration (WP-Piwik) \u003c= 1.0.28 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode","details":"The WP-Matomo Integration (WP-Piwik) plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'wp-piwik' shortcode in versions up to, and including, 1.0.28 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.","modified":"2026-08-27T03:57:04.040940175Z","published":"2023-09-22T05:31:26.949Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4774.json","unresolved_ranges":[{"extracted_events":[{"last_affected":"1.0.28"}],"source":"AFFECTED_FIELD"}],"cna_assigner":"Wordfence","cwe_ids":["CWE-79"]},"references":[{"type":"WEB","url":"https://plugins.trac.wordpress.org/browser/wp-piwik/tags/1.0.28/classes/WP_Piwik/Widget/OptOut.php#L28"},{"type":"WEB","url":"https://plugins.trac.wordpress.org/changeset/2969705/wp-piwik#file164"},{"type":"WEB","url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/faa4f041-4740-4ebb-afb3-10019ce571be?source=cve"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4774.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4774"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/matomo-org/WP-Matomo","events":[{"introduced":"0"},{"last_affected":"f0b52fc86a4d5b0ff148da0fe10db2395644e148"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"1.0.28"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:braekling:connect_matomo:*:*:*:*:*:wordpress:*:*"}}],"versions":["v1.0.28","v1.0.27","v1.0.26","v1.0.25","v1.0.21","v1.0.20","v1.0.18","v1.0.16","v1.0.13","v1.0.9","v1.0.8","v1.0.6","v1.0.5"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-4774.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"}]}