{"id":"GHSA-p845-629j-rcj6","revision":"3e202102aeae4f5bb53707f067a72fea","records":[{"revision":"3e202102aeae4f5bb53707f067a72fea","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-p845-629j-rcj6","aliases":["CVE-2026-64866","GO-2026-6244"],"title":"New API: Admin can reset passkeys for same-level or higher-privileged users","description":"## 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`.","state":0,"publishedAt":"2026-08-17T16:36:05+00:00","modifiedAt":"2026-08-18T15:11:02.3048332+00:00","affected":[{"ecosystem":"Go","name":"github.com/QuantumNous/new-api","ranges":[{"type":"ECOSYSTEM","events":[{"kind":"introduced","version":"0.9.1.3"},{"kind":"fixed","version":"1.0.0-rc.7"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/QuantumNous/new-api/security/advisories/GHSA-p845-629j-rcj6","https://github.com/QuantumNous/new-api/pull/4929","https://github.com/QuantumNous/new-api/commit/0936e2504655a5cbf7bc3c388f6d3e2bb24916d3","https://github.com/QuantumNous/new-api","https://github.com/QuantumNous/new-api/releases/tag/v1.0.0-rc.7"],"sourceUrl":"https://github.com/advisories/GHSA-p845-629j-rcj6","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-p845-629j-rcj6","identifiers":["GHSA-p845-629j-rcj6","CVE-2026-64866","GO-2026-6244"]},"retained":false,"historicalAffected":[]}],"coverage":[]}