{
 "id": "WPSEC-2026-1971",
 "url": "https://wpsec.com/vuln/WPSEC-2026-1971/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-1971/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-1971/index.md",
 "title": "Melhor Envio <= 3.0.7 - Authenticated (Contributor+) Missing Authorization to Plugin Mode Change",
 "description": "The Melhor Envio plugin for WordPress is vulnerable to unauthorized modification of data in versions 3.0.6 up to, and including, 3.0.7 due to a missing capability check on the 'melhor_envio_set_mode' admin-post handler (ModeNoticeController::handleModeSwitch). The handler only checks a nonce, and that nonce is printed on every wp-admin page to any logged-in user who can open the dashboard, both in the plugin's migration notice and in the inline 'wpApiSettingsMelhorEnvio' script. This makes it possible for authenticated attackers, with Contributor-level access and above, to switch the plugin between legacy and Melhor Integrador mode, which changes the shipping methods the store offers.",
 "plugin": {
  "slug": "melhor-envio-cotacao",
  "name": "Melhor Envio",
  "full_name": "Melhor Envio",
  "wordpress_org": "https://wordpress.org/plugins/melhor-envio-cotacao/",
  "advisories_url": "https://wpsec.com/vuln/plugin/melhor-envio-cotacao/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/melhor-envio-cotacao"
 },
 "type": "NO AUTHORISATION",
 "cwe": [
  "CWE-862"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 4.3,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "3.0.6",
    "from_inclusive": true,
    "to": "3.0.8",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 3.0.6 before 3.0.8"
  ]
 },
 "introduced_in": "3.0.6",
 "fixed_in": "3.0.8",
 "remediation": "Update to 3.0.8 or later.",
 "fix_released": "2026-10-28T19:41:03+00:00",
 "published": "2026-10-29T19:43:39+00:00",
 "updated": "2026-10-29T17:42:53.956169+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-1971/",
  "https://plugins.svn.wordpress.org/melhor-envio-cotacao/tags/3.0.8/",
  "https://wordpress.org/plugins/melhor-envio-cotacao/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/melhor-envio-cotacao",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "None seen",
  "as_of": "2026-10-29"
 }
}