Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108753 Overview
CVE-2026-108753 is a hard-coded credentials vulnerability in Agnaistic agnai through version 1.0.555. The flaw resides in the self-host.docker-compose.yml configuration, which ships with a fixed administrator password and a public JSON Web Token (JWT) signing secret. Unauthenticated attackers reachable over the network can authenticate as administrator or forge their own JWT with the admin: true claim. This allows adversaries to impersonate any user, reset account passwords, and modify server configuration. The weakness is classified under CWE-798: Use of Hard-coded Credentials.
Critical Impact
Any internet-reachable Agnai self-hosted instance using the shipped Docker Compose file is trivially compromised, granting full administrative control without any valid credentials.
Affected Products
- Agnaistic agnai versions up to and including 1.0.555
- Deployments using the shipped self-host.docker-compose.yml
- Any self-hosted instance that did not override the default admin password and JWT secret
Discovery Timeline
- 2026-10-11 - CVE-2026-108753 published to the National Vulnerability Database (NVD)
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-108753
Vulnerability Analysis
The vulnerability stems from two static secrets embedded in the project's self-host.docker-compose.yml. The file sets a fixed ADMIN_PASSWORD and a JWT_SECRET that is publicly visible in the upstream repository. Because both values are identical across every default deployment, any attacker with knowledge of the public repository possesses valid administrator credentials.
The authentication layer in srv/api/auth.ts signs session tokens with the environment-supplied JWT_SECRET. Operators who deploy the stack without changing these values effectively publish their signing key. Attackers can therefore mint tokens that pass server-side verification and include arbitrary claims, including admin: true.
Root Cause
The root cause is the inclusion of production-sensitive secrets inside a version-controlled deployment template. The upstream repository documents the self-host workflow in its README but does not force operators to rotate the default admin password or JWT secret before first use. The Docker Compose file treats these values as configuration defaults rather than mandatory inputs.
Attack Vector
Exploitation requires only network access to the Agnai HTTP interface. An attacker performs one of two actions. First, they can submit the default admin credentials to the login endpoint and receive a valid administrator session. Second, they can locally craft a JWT signed with the known public secret and present it as a bearer token. Successful exploitation yields full administrative capabilities, including user impersonation, password resets, and server configuration changes. Additional technical write-up is available in the HackMD advisory and the VulnCheck advisory.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-108753
Indicators of Compromise
- Successful administrator logins from unexpected source IP addresses, especially shortly after the service was first exposed
- Session tokens whose iat and exp claims do not align with recorded user login activity
- Unexpected password reset events or administrator-tier configuration changes in application logs
- Presence of the upstream default JWT_SECRET or ADMIN_PASSWORD strings in the running container's environment
Detection Strategies
- Inspect the deployed self-host.docker-compose.yml and running container environment for the upstream default values of ADMIN_PASSWORD and JWT_SECRET
- Enable verbose authentication logging and alert on first-time administrator logins or token issuance from new client fingerprints
- Correlate HTTP access logs for repeated login attempts followed by privileged API calls to user, auth, and configuration endpoints
Monitoring Recommendations
- Forward Agnai application and reverse-proxy logs to a centralized logging platform for retention and query
- Monitor outbound connections from the Agnai container for signs of post-exploitation data exfiltration
- Alert on configuration file modifications or secret rotations outside of approved change windows
How to Mitigate CVE-2026-108753
Immediate Actions Required
- Rotate the ADMIN_PASSWORD to a unique, high-entropy value and restart the Agnai service
- Replace the JWT_SECRET with a cryptographically random value of at least 32 bytes, invalidating all existing tokens
- Audit all administrator accounts and recent configuration changes for signs of unauthorized access
- Restrict network exposure of the Agnai interface to trusted networks or place it behind an authenticated reverse proxy
Patch Information
At the time of publication, the advisory covers Agnaistic agnai through version 1.0.555. Operators should monitor the Agnai GitHub repository for an upstream fix that removes hard-coded defaults from the shipped Docker Compose configuration. Until a verified patch is available, remediation depends on operator-side configuration changes.
Workarounds
- Override ADMIN_PASSWORD and JWT_SECRET using an external .env file or secrets manager rather than editing the shipped Compose file
- Block external access to the Agnai web interface at the firewall or ingress layer until secrets have been rotated
- Rebuild and redeploy the container stack after secret rotation to ensure no cached tokens remain valid
# Configuration example: override defaults via environment variables
# Generate strong secrets
openssl rand -base64 24 # use output as ADMIN_PASSWORD
openssl rand -hex 32 # use output as JWT_SECRET
# Example .env file loaded by docker compose
# ADMIN_PASSWORD=<generated-strong-password>
# JWT_SECRET=<generated-random-hex>
# Redeploy with the overridden values
docker compose -f self-host.docker-compose.yml --env-file .env up -d --force-recreate
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

