GitHub Advisoryadvisory · Packagist
GHSA-f5c8-m5vw-rmgq nova-toggle-5: Improper authorization on toggle endpoint allowed non-Nova users to modify boolean fields
MEDIUM
Official page ↗
- Aliases
- CVE-2026-42202
- Ecosystem
- Packagist
- Packages
- almirhodzic/nova-toggle-5
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- Weaknesses
- CWE-285
- Reviewed
- 2026-04-24
Affected packages
• Packagist almirhodzic/nova-toggle-5: < 1.3.0 → fixed in 1.3.0
Description
Impact
In versions `` 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.
Related
Alias · CVE (1)
- CVE-2026-42202 nova-toggle-5 enables fliping booleans in the index. vulnerability
Weakness · CWE (1)
- CWE-285 Improper Authorization weakness
References
- https://github.com/almirhodzic/nova-toggle-5/security/advisories/GHSA-f5c8-m5vw-rmgq web
- https://nvd.nist.gov/vuln/detail/CVE-2026-42202 advisory
- https://github.com/almirhodzic/nova-toggle-5 package
- https://github.com/almirhodzic/nova-toggle-5/blob/main/CHANGELOG.md web
- https://github.com/almirhodzic/nova-toggle-5/releases/tag/v1.3.0 web