CVE-2026-42202
JSON

6.5medium

nova-toggle-5: Improper authorization on toggle endpoint allowed non-Nova users to modify boolean fields

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-f5c8-m5vw-rmgq

Description

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.

Affected

Product or packageVersionsReported by
almirhodzic nova-toggle-5< 1.3.0CVE List
almirhodzic/nova-toggle-5 (Packagist)before 1.3.0GitHub Advisory Database

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-285

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

In 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).

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.

Patches

Fixed in 1.3.0:

  • The route is now protected by Nova's nova:api middleware, which enforces the viewNova gate.
  • The controller now checks the resource's authorizedToUpdate policy.
  • The controller only accepts attributes that are declared as a Toggle field on the resource and are not readonly in the current request context.
Workarounds

Users 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.

Credits

nova-toggle-5 thanks Roberto Negro for the responsible disclosure.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-42202 changed 2026-05-11CVE Terms of Use
GitHub Advisory DatabaseGHSA-f5c8-m5vw-rmgq changed 2026-05-13CC-BY-4.0
NVDCVE-2026-42202 changed 2026-10-26Public domain