{"api_version":"1","generated_at":"2026-07-23T11:40:18+00:00","cve":"CVE-2022-0381","urls":{"html":"https://cve.report/CVE-2022-0381","api":"https://cve.report/api/cve/CVE-2022-0381.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-0381","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-0381"},"summary":{"title":"CVE-2022-0381","description":"The Embed Swagger WordPress plugin is vulnerable to Reflected Cross-Site Scripting due to insufficient escaping/sanitization and validation via the url parameter found in the ~/swagger-iframe.php file which allows attackers to inject arbitrary web scripts onto the page, in versions up to and including 1.0.0.","state":"PUBLIC","assigner":"security@wordfence.com","published_at":"2022-02-04 23:15:00","updated_at":"2022-02-10 06:48:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://www.wordfence.com/vulnerability-advisories/#CVE-2022-0381","name":"https://www.wordfence.com/vulnerability-advisories/#CVE-2022-0381","refsource":"MISC","tags":[],"title":"Vulnerability Advisories - Wordfence","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://gist.github.com/Xib3rR4dAr/4b3ea7960914e23c3a875b973a5b37a3","name":"https://gist.github.com/Xib3rR4dAr/4b3ea7960914e23c3a875b973a5b37a3","refsource":"MISC","tags":[],"title":"WP_plugin_Embed-Swagger_XSS_PoC.md · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://plugins.trac.wordpress.org/browser/embed-swagger/trunk/swagger-iframe.php#L59","name":"https://plugins.trac.wordpress.org/browser/embed-swagger/trunk/swagger-iframe.php#L59","refsource":"MISC","tags":[],"title":"403 Forbidden","mime":"text/html","httpstatus":"403","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-0381","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0381","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Muhammad Zeeshan (Xib3rR4dAr)","lang":""}],"nvd_cpes":[{"cve_year":"2022","cve_id":"381","vulnerable":"1","versionEndIncluding":"1.0.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"embed_swagger_project","cpe5":"embed_swagger","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":{"AKA":"Wordfence","ASSIGNER":"security@wordfence.com","ID":"CVE-2022-0381","STATE":"PUBLIC","TITLE":"Embed Swagger <= 1.0.0 Reflected Cross-Site Scripting"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Embed Swagger","version":{"version_data":[{"version_affected":"<=","version_name":"1.0.0","version_value":"1.0.0"}]}}]},"vendor_name":"Embed Swagger"}]}},"credit":[{"lang":"eng","value":"Muhammad Zeeshan (Xib3rR4dAr)"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"The Embed Swagger WordPress plugin is vulnerable to Reflected Cross-Site Scripting due to insufficient escaping/sanitization and validation via the url parameter found in the ~/swagger-iframe.php file which allows attackers to inject arbitrary web scripts onto the page, in versions up to and including 1.0.0."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-79 Cross-site Scripting (XSS)"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://www.wordfence.com/vulnerability-advisories/#CVE-2022-0381","name":"https://www.wordfence.com/vulnerability-advisories/#CVE-2022-0381"},{"refsource":"MISC","url":"https://gist.github.com/Xib3rR4dAr/4b3ea7960914e23c3a875b973a5b37a3","name":"https://gist.github.com/Xib3rR4dAr/4b3ea7960914e23c3a875b973a5b37a3"},{"refsource":"MISC","url":"https://plugins.trac.wordpress.org/browser/embed-swagger/trunk/swagger-iframe.php#L59","name":"https://plugins.trac.wordpress.org/browser/embed-swagger/trunk/swagger-iframe.php#L59"}]},"solution":[{"lang":"eng","value":"Uninstall plugin from site."}],"source":{"discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2022-02-04 23:15:00","lastModifiedDate":"2022-02-10 06:48:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:embed_swagger_project:embed_swagger:*:*:*:*:*:wordpress:*:*","versionEndIncluding":"1.0.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"381","Ordinal":"227082","Title":"CVE-2022-0381","CVE":"CVE-2022-0381","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"381","Ordinal":"1","NoteData":"The Embed Swagger WordPress plugin is vulnerable to Reflected Cross-Site Scripting due to insufficient escaping/sanitization and validation via the url parameter found in the ~/swagger-iframe.php file which allows attackers to inject arbitrary web scripts onto the page, in versions up to and including 1.0.0.","Type":"Description","Title":null},{"CveYear":"2022","CveId":"381","Ordinal":"2","NoteData":"2022-02-04","Type":"Other","Title":"Published"},{"CveYear":"2022","CveId":"381","Ordinal":"3","NoteData":"2022-02-04","Type":"Other","Title":"Modified"}]}}}