{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-39341 exists.","fix":"No fix has been published for CVE-2021-39341 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-39341 is a high-severity missing authorization vulnerability in OptinMonster, published on 1 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-39341 and fix it if it is affected.\n\nWhat it is: CVE-2021-39341 is a high-severity missing authorization vulnerability in OptinMonster, published on 1 Nov 2021. 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-2021-39341 exists.\n\nAffected product: OptinMonster. 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-2021-39341/ (Markdown: https://insights.sbomify.com/CVE-2021-39341/index.md)","id":"CVE-2021-39341","markdown":"https://insights.sbomify.com/CVE-2021-39341/index.md","name":"CVE-2021-39341","record":{"aliases":["GHSA-whcc-jgf3-q7pm"],"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":"Attackers can access sensitive information and modify settings via unprotected REST API endpoints in the OptinMonster WordPress plugin.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Wordfence","cpe":[{"product":"optinmonster","vendor":"optinmonster"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-319","name":"Cleartext Transmission of Sensitive Information"},{"id":"CWE-863","name":"Incorrect Authorization"},{"id":"CWE-285","name":"Improper Authorization"}],"description":"The OptinMonster WordPress plugin is vulnerable to sensitive information disclosure and unauthorized setting updates due to insufficient authorization validation via the logged_in_or_has_api_key function in the ~/OMAPI/RestApi.php file that can used to exploit inject malicious web scripts on sites with the plugin installed. This affects versions up to, and including, 2.6.4.","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/2021/CVE-2021-39341.yaml","stars":null,"title":"OptinMonster Plugin \u003c 2.6.5 - Unprotected REST-API"}],"tier":"weaponised"},"has_fix":null,"headline":"OptinMonster \u003c= 2.6.4 Unprotected REST-API Endpoints","id":"CVE-2021-39341","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"missing_authorization","year":"2021"},"n_packages":0,"n_references":3,"next":{"headline":"Credova_Financial \u003c= 1.4.8 Sensitive Information Disclosure","id":"CVE-2021-39342"},"packages":[],"prev":{"headline":"Notification – Custom Notifications and Alerts for WordPress \u003c= 7.2.4 Authenticated Stored Cross-Site Scripting","id":"CVE-2021-39340"},"products":["OptinMonster"],"published":"2021-11-01","related":[{"cvss_score":6.5,"headline":"Popup Builder by OptinMonster \u003c 2.12.2 - Subscriber+ Arbitrary Post Content Disclosure","id":"CVE-2023-0772","kev_date_added":null,"published":"2023-03-13"},{"cvss_score":6.4,"headline":"Cross-site scripting in Popup Builder \u0026 Popup Maker for WordPress – OptinMonster Email Marketing and Lead Generation","id":"CVE-2024-4045","kev_date_added":null,"published":"2024-05-25"},{"cvss_score":6.1,"headline":"OptinMonster \u003c= 2.6.0 Reflected Cross-Site Scripting","id":"CVE-2021-39325","kev_date_added":null,"published":"2021-09-20"},{"cvss_score":5.3,"headline":"Missing authorization in n/a","id":"CVE-2016-10996","kev_date_added":null,"published":"2019-09-20"}],"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-03-31","vendors":["OptinMonster"]},"summary":"Attackers can access sensitive information and modify settings via unprotected REST API endpoints in the OptinMonster WordPress plugin.","url":"https://insights.sbomify.com/CVE-2021-39341/"}