{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-0218 exists.","fix":"No fix has been published for CVE-2022-0218 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-0218 is a high-severity missing authorization vulnerability in codemiq WP HTML Mail, published on 4 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-0218 and fix it if it is affected.\n\nWhat it is: CVE-2022-0218 is a high-severity missing authorization vulnerability in codemiq WP HTML Mail, published on 4 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-0218 exists.\n\nAffected product: codemiq WP HTML Mail. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-0218/ (Markdown: https://insights.sbomify.com/CVE-2022-0218/index.md)","id":"CVE-2022-0218","markdown":"https://insights.sbomify.com/CVE-2022-0218/index.md","name":"CVE-2022-0218","record":{"aliases":["GHSA-6434-hpfm-8425"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"WordPress plugin","requires_auth":"none","summary":"Unauthenticated attackers can access a REST API endpoint to retrieve and modify theme settings, potentially injecting malicious JavaScript.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Wordfence","cpe":[{"product":"wordpress_email_template_designer","vendor":"codemiq"}],"cvss":{"score":8.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"The WP HTML Mail WordPress plugin is vulnerable to unauthorized access which allows unauthenticated attackers to retrieve and modify theme settings due to a missing capability check on the /themesettings REST-API endpoint found in the ~/includes/class-template-designer.php file, in versions up to and including 3.0.9. This makes it possible for attackers with no privileges to execute the endpoint and add malicious JavaScript to a vulnerable WordPress site.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2022/CVE-2022-0218.yaml","stars":null,"title":"HTML Email Template Designer \u003c 3.1 - Missing Authorization on Rest Route"}],"tier":"weaponised"},"has_fix":null,"headline":"WP HTML Mail \u003c= 3.0.9 Missing Authorization on REST-API Route","id":"CVE-2022-0218","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"missing_authorization","year":"2022"},"n_packages":0,"n_references":2,"next":{"headline":"Improper Restriction of XML External Entity Reference in skylot/jadx","id":"CVE-2022-0219"},"packages":[],"prev":{"headline":"XML external entity in prosody","id":"CVE-2022-0217"},"products":["WP HTML Mail"],"published":"2022-02-04","related":[{"cvss_score":8.8,"headline":"Cross-site request forgery in WordPress Email Template Designer - WP HTML Mail","id":"CVE-2021-20779","kev_date_added":null,"published":"2021-07-07"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-10","vendors":["codemiq"]},"summary":"Unauthenticated attackers can access a REST API endpoint to retrieve and modify theme settings, potentially injecting malicious JavaScript.","url":"https://insights.sbomify.com/CVE-2022-0218/"}