CVE-2026-42202: nova-toggle-5 Improper Authorization On Toggle Endpoint Vulnerability
MODERATECVE-2026-42202 is a MODERATE (CVSS 6.5) improper authorization on toggle endpoint vulnerability (CWE-285: Improper Authorization) affecting nova-toggle-5 libraries in the Packagist ecosystem. The issue involves improper authorization on toggle endpoint allowed non-nova users to modify boolean fields. Remediation is available by upgrading affected packages to version 1.3.0.
CVE-2026-42202 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2026-42202
To remediate this vulnerability, upgrade all affected nova-toggle-5 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade almirhodzic/nova-toggle-5 to 1.3.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for almirhodzic/nova-toggle-5
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-42202, inspect your project dependencies for nova-toggle-5:
inspect dependencies for almirhodzic/nova-toggle-5
Analyze the terminal output to locate any version of nova-toggle-5 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In nova-toggle-5, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-42202 Affected nova-toggle-5 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
almirhodzic/nova-toggle-5
|
Packagist |
< 1.3.0
|
1.3.0
|
References
Frequently Asked Questions
What is CVE-2026-42202?
Which nova-toggle-5 versions are affected?
What version fixes CVE-2026-42202?
Is almirhodzic/nova-toggle-5 affected?
What is the CVSS score of CVE-2026-42202?
What CWE is associated with CVE-2026-42202?
How can I check Packagist dependencies for CVE-2026-42202?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f5c8-m5vw-rmgq",
"modified" : "2026-05-13T13:37:39Z",
"published" : "2026-04-24T16:00:09Z",
"aliases" : [ "CVE-2026-42202" ],
"summary" : "nova-toggle-5: Improper authorization on toggle endpoint allowed non-Nova users to modify boolean fields",
"details" : "### 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "almirhodzic/nova-toggle-5"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/almirhodzic/nova-toggle-5/security/advisories/GHSA-f5c8-m5vw-rmgq"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42202"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/almirhodzic/nova-toggle-5"
}, {
"type" : "WEB",
"url" : "https://github.com/almirhodzic/nova-toggle-5/blob/main/CHANGELOG.md"
}, {
"type" : "WEB",
"url" : "https://github.com/almirhodzic/nova-toggle-5/releases/tag/v1.3.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-285" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-24T16:00:09Z",
"nvd_published_at" : "2026-05-08T22:16:31Z"
}
}