{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-12165 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-12165 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-12165 is a high-severity vulnerability in contest-gallery Contest Gallery – Upload \u0026 Vote Photos, Media, Sell with PayPal \u0026 Stripe, published on 17 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-12165 and fix it if it is affected.\n\nWhat it is: CVE-2026-12165 is a high-severity vulnerability in contest-gallery Contest Gallery – Upload \u0026 Vote Photos, Media, Sell with PayPal \u0026 Stripe, published on 17 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-12165 in the wild and no public exploit code.\n\nAffected product: contest-gallery Contest Gallery – Upload \u0026 Vote Photos, Media, Sell with PayPal \u0026 Stripe. 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-2026-12165/ (Markdown: https://insights.sbomify.com/CVE-2026-12165/index.md)","id":"CVE-2026-12165","markdown":"https://insights.sbomify.com/CVE-2026-12165/index.md","name":"CVE-2026-12165","record":{"aliases":["GHSA-2mpv-c59f-r8f4"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"WordPress plugin","requires_auth":"low_privilege","summary":"Authenticated authors can escalate privileges to administrator by manipulating the RegistryUserRole parameter in the Contest Gallery plugin.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Wordfence","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"}],"description":"The Contest Gallery – Upload \u0026 Vote Photos, Media, Sell with PayPal \u0026 Stripe plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 30.0.2 via the `RegistryUserRole` parameter. This is due to the plugin's admin menu being registered at the `edit_posts` capability level — granting Contributor-level users access to the plugin's admin pages and a valid `cg_admin` nonce — while the option-saving handler in `change-options-and-sizes.php` performs no `current_user_can()` capability check beyond `check_admin_referer('cg_admin')`, and the `RegistryUserRole` value is processed only through `sanitize_text_field()` and `htmlentities()` without restriction to an allowlist of permitted role names. This makes it possible for authenticated attackers, with author-level access and above, to overwrite the plugin's stored `RegistryUserRole` option with `administrator`, which the `cg_create_wp_user_from_google_user` function then reads back from the `contest_gal1ery_registry_and_login_options` database table without any allowlist validation and passes directly to `wp_update_user()`, effectively promoting a newly registered Google sign-in account to Administrator.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Contest Gallery \u003c= 30.0.2 - Authenticated (Author+) Privilege Escalation via 'RegistryUserRole' Parameter","id":"CVE-2026-12165","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"privilege_escalation","year":"2026"},"n_packages":0,"n_references":6,"next":{"headline":"CVE-2026-12166","id":"CVE-2026-12166"},"packages":[],"prev":{"headline":"Privilege Escalation in Fortra File Integrity Monitoring (FIM)","id":"CVE-2026-12164"},"products":["Contest Gallery – Upload \u0026 Vote Photos, Media, Sell with PayPal \u0026 Stripe"],"published":"2026-06-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-06-17","vendors":["contest-gallery"]},"summary":"Authenticated authors can escalate privileges to administrator by manipulating the RegistryUserRole parameter in the Contest Gallery plugin.","url":"https://insights.sbomify.com/CVE-2026-12165/"}