nova-toggle-5: Improper authorization on toggle endpoint allowed non-Nova users to modify boolean fields
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:apimiddleware, which enforces theviewNovagate. - The controller now checks the resource's
authorizedToUpdatepolicy. - The controller only accepts attributes that are declared as a
Togglefield 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.
Czego dotyczy
Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.
| Platforma | Paczka | Podatne wersje | Poprawka w wersji |
|---|---|---|---|
| Paczka Composer | almirhodzic/nova-toggle-5 | < 1.3.0 | 1.3.0 |
Odnośniki
- https://github.com/almirhodzic/nova-toggle-5/security/advisories/GHSA-f5c8-m5vw-rmgq
- https://nvd.nist.gov/vuln/detail/CVE-2026-42202
- https://github.com/almirhodzic/nova-toggle-5
- https://github.com/almirhodzic/nova-toggle-5/blob/main/CHANGELOG.md
- https://github.com/almirhodzic/nova-toggle-5/releases/tag/v1.3.0
- Wektor CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N- Słabość (CWE)
CWE-285- Platforma
- Composer
- Paczka
almirhodzic/nova-toggle-5- Ujawniono
- 24.04.2026
- Aktualizacja
- 11.10.2026 10:22
Źródła i licencje
OSV / GitHub Advisory Database - GHSA-f5c8-m5vw-rmgq - CC BY 4.0
Historia podatności: almirhodzic/nova-toggle-5
Wszystkie opisane podatności tej paczki (Paczka Composer), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.
To jedyna znana podatność tej paczki.
Dowiedz się, które podatności dotyczą Twojej aplikacji
Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.