CVE-2026-42202: nova-toggle-5 Improper Authorization On Toggle Endpoint Vulnerability

MODERATE
Advisory Identifier: GHSA-f5c8-m5vw-rmgq
CVSS 6.5
CWE-285
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-42202
GHSA Identifier GHSA-f5c8-m5vw-rmgq
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-285: Improper Authorization
Affected Product nova-toggle-5
Package Ecosystem Packagist
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

almirhodzic/nova-toggle-5 fixed: 1.3.0
Upgrade almirhodzic/nova-toggle-5 to 1.3.0
Verify Direct and Transitive Dependencies

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

### 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](https://github.com/RobertoNegro) for the responsible disclosure.

CVE-2026-42202 Affected nova-toggle-5 Versions

1 component(s)
Fixed Versions:
1.3.0
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?
CVE-2026-42202 is a security vulnerability in nova-toggle-5 involving Improper authorization on toggle endpoint allowed non-Nova users to modify boolean fields under CWE-285: Improper Authorization.
Which nova-toggle-5 versions are affected?
Affected versions include releases prior to 1.3.0 across affected packages: almirhodzic/nova-toggle-5.
What version fixes CVE-2026-42202?
Upgrading to 1.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is almirhodzic/nova-toggle-5 affected?
Yes, almirhodzic/nova-toggle-5 is affected in releases prior to 1.3.0. Upgrade your dependency to 1.3.0 or later.
What is the CVSS score of CVE-2026-42202?
CVE-2026-42202 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2026-42202?
CVE-2026-42202 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Packagist dependencies for CVE-2026-42202?
Run the dependency tree command: 'inspect dependencies for almirhodzic/nova-toggle-5'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}