{"id":"CVE-2026-126797","published":"2026-11-11T21:16:43.027","lastModified":"2026-11-11T21:16:43.027","description":"NextScan 1.1.0 through 1.2.0 contains an authentication bypass vulnerability in ns-admin that allows unauthenticated attackers to forge administrator tokens using a hardcoded JWT signing key. Attackers can sign an HS256 X-Access-Token carrying the public super administrator role ID to gain full access to user management, scan tasks and stored vulnerability results.","cvssScore":9.8,"cvssSeverity":"CRITICAL","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwes":["CWE-321"],"vendors":[],"products":[],"references":[{"url":"https://github.com/tongcheng-security-team/NextScan/blob/v1.2.0/docker/docker-compose.yaml","tags":[]},{"url":"https://github.com/tongcheng-security-team/NextScan/issues/48","tags":[]},{"url":"https://hub.docker.com/r/lysec/ns-admin","tags":[]},{"url":"https://vul.yulun.ac.cn/20261107/nextscan/","tags":[]},{"url":"https://www.vulncheck.com/advisories/nextscan-1.1.0-through-1.2.0-hardcoded-jwt-key-authentication-bypass-in-ns-admin","tags":[]}],"exploitRefs":[{"url":"https://github.com/tongcheng-security-team/NextScan/blob/v1.2.0/docker/docker-compose.yaml","tags":[]},{"url":"https://github.com/tongcheng-security-team/NextScan/issues/48","tags":[]}],"hasPoc":true,"ai":{"summary":"NextScan versions 1.1.0 through 1.2.0 contain a hardcoded JWT signing key in the ns-admin component, enabling unauthenticated attackers to forge valid administrator tokens using HS256. This allows full administrative access to user management, scan tasks, and vulnerability data without authentication.","exploitability":"Exploitation is trivial for remote attackers with no prerequisites beyond network access to the ns-admin endpoint, as it relies solely on a publicly discoverable hardcoded key.","blast_radius":"Successful exploitation grants full administrative control over the NextScan instance, enabling complete compromise of user data, scan results, and system configuration.","remediation":"Upgrade to NextScan version 1.2.1 or later, which removes the hardcoded JWT signing key and implements secure key management.","detection":"Defenders should monitor for requests to ns-admin endpoints containing X-Access-Token headers with HS256-signed JWTs that decode to a super administrator role ID without prior authentication; such tokens may be validated against the known hardcoded key if exposed in logs or network captures.","tags":["auth-bypass","jwt","hardcoded-secret","web","admin-panel"],"model":"garnet-coder","analyzedAt":"2026-11-12T09:45:31.891Z"}}