CVE-2026-64866: New API Admin Can Reset Passkeys For Vulnerability
MODERATECVE-2026-64866 is a MODERATE admin can reset passkeys for vulnerability (CWE-862: Missing Authorization) affecting New API libraries in the Go ecosystem. The issue involves admin can reset passkeys for same-level or higher-privileged users. Remediation is available by upgrading affected packages to version 1.0.0-rc.7.
CVE-2026-64866 at a Glance
How to Fix CVE-2026-64866
To remediate this vulnerability, upgrade all affected New API dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/QuantumNous/new-api to 1.0.0-rc.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/QuantumNous/new-api
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-64866, inspect your project dependencies for New API:
inspect dependencies for github.com/QuantumNous/new-api
Analyze the terminal output to locate any version of New API in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.0-rc.7), 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-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In New API, 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-64866 Affected New API Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/QuantumNous/new-api
|
Go |
≥ 0.9.1.3
< 1.0.0-rc.7
|
1.0.0-rc.7
|
References
Frequently Asked Questions
What is CVE-2026-64866?
Which New API versions are affected?
What version fixes CVE-2026-64866?
Is github.com/QuantumNous/new-api affected?
What CWE is associated with CVE-2026-64866?
How can I check Go dependencies for CVE-2026-64866?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p845-629j-rcj6",
"modified" : "2026-08-17T16:36:05Z",
"published" : "2026-08-17T16:36:05Z",
"aliases" : [ "CVE-2026-64866" ],
"summary" : "New API: Admin can reset passkeys for same-level or higher-privileged users",
"details" : "## Summary\n\nThe admin passkey reset endpoint lacked the role-level authorization check used by comparable privileged account-protection endpoints. A lower-privileged administrator could attempt passkey reset operations against same-level or higher-privileged users, including root-level accounts.\n\n## Impact\n\nIf the target account had a passkey configured, a lower-privileged administrator could remove that authentication factor and weaken the target account's protection boundary. The attacker still needed administrator privileges, so the issue is rated Medium.\n\n## Affected versions\n\nThe vulnerable admin passkey reset behavior was present from the passkey feature introduction in `v0.9.1.3` through versions before `v1.0.0-rc.7`.\n\n## Patches\n\nThis issue is fixed in `v1.0.0-rc.7`. The fix adds a `canManageTargetRole` check to `AdminResetPasskey` before passkey lookup or deletion, preventing lower-privileged administrators from operating on same-level or higher-privileged users.\n\n## Workarounds\n\nIf upgrading immediately is not possible, restrict admin access to trusted operators only and block `DELETE /api/user/:id/reset_passkey` at the reverse proxy or gateway except for root operators.\n\n## References\n\n- Fixed by commit `0936e2504655a5cbf7bc3c388f6d3e2bb24916d3`.\n- Relevant code paths: `controller/passkey.go`, `controller/twofa.go`, and `router/api-router.go`.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/QuantumNous/new-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.9.1.3"
}, {
"fixed" : "1.0.0-rc.7"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/QuantumNous/new-api/security/advisories/GHSA-p845-629j-rcj6"
}, {
"type" : "WEB",
"url" : "https://github.com/QuantumNous/new-api/pull/4929"
}, {
"type" : "WEB",
"url" : "https://github.com/QuantumNous/new-api/commit/0936e2504655a5cbf7bc3c388f6d3e2bb24916d3"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/QuantumNous/new-api"
}, {
"type" : "WEB",
"url" : "https://github.com/QuantumNous/new-api/releases/tag/v1.0.0-rc.7"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-862" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-17T16:36:05Z",
"nvd_published_at" : null
}
}