Summary
CVE-2026-126797 is an authentication bypass vulnerability in the ns-admin component of NextScan 1.1.0 through 1.2.0. The component uses a hardcoded JWT signing key, so unauthenticated attackers can forge administrator tokens. The CVE record rates it critical (CVSS v4.0 9.3).
Technical details
- Root cause: The
ns-adminbinary embeds a hardcoded JWT signing secret (namednscan_admin_api_jwt_secret_keyin the public issue report). The admin API uses this secret to validate tokens. - Trigger conditions: The attacker needs network access to an exposed ns-admin service. They also need the embedded key, which can be extracted from the binary or the published Docker image (
lysec/ns-admin). No credentials or user interaction are required. - Attack vector: Network. The attacker signs a JWT with the known key and presents it as an administrator token.
- Impact: Full administrative access to the NextScan platform, with high impact on confidentiality, integrity and availability.
Affected software
- NextScan 1.1.0 through 1.2.0 (
ns-admin, packagepkg:docker/lysec/ns-admin)
Severity
- CVSS v4.0: 9.3 (Critical) –
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS v3.1 (also listed in the CVE record): 9.8 (Critical) –
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: The CVE record does not name a fixed version. Check the NextScan project (https://github.com/tongcheng-security-team/NextScan) for a release that replaces the hardcoded key, and upgrade when one is available.
- If no patch is available:
- Do not expose ns-admin to the internet. Restrict access with firewall rules, a VPN or an IP allowlist.
- Review ns-admin access logs for unexpected administrative activity.
- The reporter recommends that the JWT secret be supplied externally (environment variable or secrets vault), generated per deployment and rotated, not embedded in the binary. This requires a code change by the vendor.

