Incorrect Authorization 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% (14th 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 Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-WITHSTUDIOCMSAPISPEC-15518580
  • published13 Mar 2026
  • disclosed10 Mar 2026
  • creditFilipeGaudard

Introduced: 10 Mar 2026

NewCVE-2026-30944  (opens in a new tab)
CWE-639  (opens in a new tab)
CWE-863  (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 Incorrect Authorization through the api-tokens endpoint, which allows an authenticated user with editor privileges or higher to generate API tokens for any user by specifying their user ID in the request body. An attacker can gain unauthorized access to higher-privileged accounts, including owner and admin, by generating tokens for those accounts and using them to access protected API endpoints.

CVSS Base Scores

version 4.0
version 3.1