{"api_version":"1","generated_at":"2026-07-23T11:58:45+00:00","cve":"CVE-2022-0661","urls":{"html":"https://cve.report/CVE-2022-0661","api":"https://cve.report/api/cve/CVE-2022-0661.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-0661","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-0661"},"summary":{"title":"CVE-2022-0661","description":"The Ad Injection WordPress plugin through 1.2.0.19 does not properly sanitize the body of the adverts injected into the pages, allowing a high privileged user (Admin+) to inject arbitrary HTML or javascript even with unfiltered_html disallowed, leading to a stored cross-site scripting (XSS) vulnerability. Further it is also possible to inject PHP code, leading to a Remote Code execution (RCE) vulnerability, even if the DISALLOW_FILE_EDIT and DISALLOW_FILE_MOD constants are both set.","state":"PUBLIC","assigner":"contact@wpscan.com","published_at":"2022-04-18 18:15:00","updated_at":"2022-04-27 00:17:00"},"problem_types":["CWE-94"],"metrics":[],"references":[{"url":"https://wpscan.com/vulnerability/3c5a7b03-d4c3-46b9-af65-fb50e58b0bfd","name":"https://wpscan.com/vulnerability/3c5a7b03-d4c3-46b9-af65-fb50e58b0bfd","refsource":"MISC","tags":[],"title":"Attention Required! | Cloudflare","mime":"text/html","httpstatus":"403","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-0661","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0661","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Asif Nawaz Minhas","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"661","vulnerable":"1","versionEndIncluding":"1.2.0.19","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ad_injection_project","cpe5":"ad_injection","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"wordpress","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ID":"CVE-2022-0661","ASSIGNER":"contact@wpscan.com","STATE":"PUBLIC","TITLE":"Ad Injection <= 1.2.0.19 - Admin+ Stored Cross-Site Scripting & RCE"},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","generator":"WPScan CVE Generator","affects":{"vendor":{"vendor_data":[{"vendor_name":"Unknown","product":{"product_data":[{"product_name":"Ad Injection","version":{"version_data":[{"version_affected":"<=","version_name":"1.2.0.19","version_value":"1.2.0.19"}]}}]}}]}},"description":{"description_data":[{"lang":"eng","value":"The Ad Injection WordPress plugin through 1.2.0.19 does not properly sanitize the body of the adverts injected into the pages, allowing a high privileged user (Admin+) to inject arbitrary HTML or javascript even with unfiltered_html disallowed, leading to a stored cross-site scripting (XSS) vulnerability. Further it is also possible to inject PHP code, leading to a Remote Code execution (RCE) vulnerability, even if the DISALLOW_FILE_EDIT and DISALLOW_FILE_MOD constants are both set."}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://wpscan.com/vulnerability/3c5a7b03-d4c3-46b9-af65-fb50e58b0bfd","name":"https://wpscan.com/vulnerability/3c5a7b03-d4c3-46b9-af65-fb50e58b0bfd"}]},"problemtype":{"problemtype_data":[{"description":[{"value":"CWE-94 Improper Control of Generation of Code ('Code Injection')","lang":"eng"}]}]},"credit":[{"lang":"eng","value":"Asif Nawaz Minhas"}],"source":{"discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2022-04-18 18:15:00","lastModifiedDate":"2022-04-27 00:17:00","problem_types":["CWE-94"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.2,"baseSeverity":"HIGH"},"exploitabilityScore":1.2,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.5},"severity":"MEDIUM","exploitabilityScore":8,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:ad_injection_project:ad_injection:*:*:*:*:*:wordpress:*:*","versionEndIncluding":"1.2.0.19","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}