{"id":"CVE-2026-42202","aliases":["CVE-2026-42202","GHSA-f5c8-m5vw-rmgq"],"related":[],"kind":"vulnerability","state":"published","title":"nova-toggle-5: Improper authorization on toggle endpoint allowed non-Nova users to modify boolean fields","summary":"nova-toggle-5 enables fliping booleans in the index. Prior to version 1.3.0, the toggle endpoint (POST/nova-vendor/nova-toggle/toggle/{resource}/{resourceId}) was protected only by web + auth:<guard> middleware. Any user authenticated on the configured guard could call the endpoint and flip boolean attributes on any Nova resource — including users who do not have access to Nova itself (for example, frontend customers sharing the web guard with the Nova admin area). The endpoint also accepted an arbitrary attribute parameter, which meant a valid caller could toggle any boolean column on the underlying model — not just columns exposed as Toggle fields on the resource. This issue has been patched in version 1.3.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"nova-toggle-5 enables fliping booleans in the index. Prior to version 1.3.0, the toggle endpoint (POST/nova-vendor/nova-toggle/toggle/{resource}/{resourceId}) was protected only by web + auth:<guard> middleware. Any user authenticated on the configured guard could call the endpoint and flip boolean attributes on any Nova resource — including users who do not have access to Nova itself (for example, frontend customers sharing the web guard with the Nova admin area). The endpoint also accepted an arbitrary attribute parameter, which meant a valid caller could toggle any boolean column on the underlying model — not just columns exposed as Toggle fields on the resource. This issue has been patched in version 1.3.0.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIn versions `< 1.3.0`, the toggle endpoint (`POST /nova-vendor/nova-toggle/toggle/{resource}/{resourceId}`) was protected only by `web` + `auth:<guard>` middleware. Any user authenticated on the configured guard could call the endpoint and flip boolean attributes on any Nova resource — including users who do not have access to Nova itself (for example, frontend customers sharing the `web` guard with the Nova admin area).\n\nThe endpoint also accepted an arbitrary `attribute` parameter, which meant a valid caller could toggle any boolean column on the underlying model — not just columns exposed as `Toggle` fields on the resource.\n\n### Patches\n\nFixed in `1.3.0`:\n\n- The route is now protected by Nova's `nova:api` middleware, which enforces the `viewNova` gate.\n- The controller now checks the resource's `authorizedToUpdate` policy.\n- The controller only accepts attributes that are declared as a `Toggle` field on the resource and are not readonly in the current request context.\n\n### Workarounds\n\nUsers who cannot upgrade immediately can either remove the package or restrict access to the `/nova-vendor/nova-toggle/toggle/*` routes via an additional middleware in their application that enforces the `viewNova` gate.\n\n### Credits\n\nnova-toggle-5 thanks [Roberto Negro](https://github.com/RobertoNegro) for the responsible disclosure.","format":"markdown","source":"ghsa"},{"lang":"es","text":"nova-toggle-5 permite invertir booleanos en el índice. Antes de la versión 1.3.0, el endpoint de alternancia (POST/nova-vendor/nova-toggle/toggle/{resource}/{resourceId}) estaba protegido únicamente por el middleware web + auth:[guard]. Cualquier usuario autenticado en el guard configurado podía llamar al endpoint e invertir atributos booleanos en cualquier recurso de Nova - incluyendo usuarios que no tienen acceso a Nova en sí (por ejemplo, clientes de frontend que comparten el guard web con el área de administración de Nova). El endpoint también aceptaba un parámetro de atributo arbitrario, lo que significaba que un llamador válido podía alternar cualquier columna booleana en el modelo subyacente - no solo las columnas expuestas como campos Toggle en el recurso. Este problema ha sido parcheado en la versión 1.3.0.","source":"nvd"}],"published":"2026-04-24T16:00:09.000Z","modified":"2026-10-26T18:10:00.173Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-285"],"affected":[{"ranges":[{"version":"< 1.3.0","status":"affected"}],"vendor":"almirhodzic","product":"nova-toggle-5","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.0"}],"ecosystem":"Packagist","package":"almirhodzic/nova-toggle-5","purl":"pkg:composer/almirhodzic/nova-toggle-5","source":"ghsa"}],"references":[{"url":"https://github.com/almirhodzic/nova-toggle-5/security/advisories/GHSA-f5c8-m5vw-rmgq","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/almirhodzic/nova-toggle-5/releases/tag/v1.3.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42202","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/almirhodzic/nova-toggle-5","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/almirhodzic/nova-toggle-5/blob/main/CHANGELOG.md","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-11T14:24:37.929Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42202","url":"https://www.cve.org/CVERecord?id=CVE-2026-42202","licence":"CVE Terms of Use","modified":"2026-05-11T14:24:49.712Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f5c8-m5vw-rmgq","url":"https://github.com/advisories/GHSA-f5c8-m5vw-rmgq","licence":"CC-BY-4.0","modified":"2026-05-13T13:52:32.024Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42202","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42202","licence":"Public domain","modified":"2026-10-26T18:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:21.115Z","epss":{"score":0.00201,"percentile":0.10588,"date":"2026-12-01T12:00:22.000Z"}}