Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRead default JWT secret from public source
-
DeliveryForge admin-claim JWT signed with secret
-
ExploitSend Bearer token to privileged API
-
ExecutionSignature verified, payload roles trusted
-
PersistAccepted as administrator session
-
ImpactFull privileged API access / takeover
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the AnsibleForms deployment to be running with |
| Impact | Multiple signals point the same direction here, with one important caveat about scope. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N) describes a network-reachable, low-complexity, unauthenticated flaw with full C:H/I:H/A:H impact, scoring 9.8 - and the mechanism in the GHSA advisory corroborates it: the JWT signing secret falls back to a hard-coded value ("j6fz%Q9S2YJC?x|u", now visible in the public diff), auth_jwt.js verifies only the signature plus a truthy |
| Exploit ScenarioDerived | An unauthenticated attacker reads the hard-coded fallback secret from the public source tree, mints a JWT signed with it whose payload asserts an administrator identity and a truthy |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Unauthenticated authentication bypass in AnsibleForms 6.2.0 and earlier lets a remote attacker forge an administrator JWT session and reach every privileged API endpoint, because the application falls back to a hard-coded signing secret published in its own source tree when ACCESS_TOKEN_SECRET is not configured. Any deployment that left the variable unset - which the shipped .env.example encourages by leaving it commented out - is trivially forgeable, and the JWT strategy never re-checks the user against the database, so the token's own role and options claims are trusted verbatim. Rated CVSS 9.8 (AV:N/AC:L/PR:N/UI:N) with an act_now priority; the advisory describes a proof-of-concept forging mechanism rather than weaponized code, and no confirmed active exploitation was identified at time of analysis. The lone gating condition is configuration: instances that set a strong unique ACCESS_TOKEN_SECRET are not exploitable through this path.
RemediationAI
Upgrade to AnsibleForms 6.2.1 (vendor-released patch: 6.2.1, release notes at https://github.com/ansibleforms/ansibleforms/releases/tag/6.2.1, security advisory GHSA-g27f-cjvv-42rf), which removes the hard-coded fallback and refuses to treat the old default as valid. After upgrading, set a strong, unique ACCESS_TOKEN_SECRET in the environment and treat the upgrade as a secret rotation: every token minted or forgeable under the old default must be invalidated, which means restarting the service with a fresh secret. Be aware of the trade-off the vendor introduced deliberately - if ACCESS_TOKEN_SECRET is absent in 6.2.1, the process generates a random secret at startup and logs a warning, so signing survives only for that process lifetime and all sessions are dropped on every restart; this is safe but operationally disruptive, so configure the variable rather than relying on auto-generation. The advisory's additional hardening recommendation is to re-validate the token subject against the database in the JWT strategy (confirm the user still exists and derive roles and options server-side) instead of trusting payload claims, since the self-contained-token trust model is what turns a leaked signing key into instant administrator access; the relevant changes are in commit a9b4979165c4730b2abe1dbcfd053b4d3f9a5594 and pull request https://github.com/ansibleforms/ansibleforms/pull/473. Until upgrade is possible, no configuration-level workaround is documented beyond setting a strong non-default ACCESS_TOKEN_SECRET on the existing version, which removes the forgeable key but does not fix the missing database re-validation of subject, roles and options.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
AnsibleForms is a Node.js/Express self-hosted front end for Ansible that exposes REST APIs for repositories, credentials and form-driven automation; API authentication is stateless JWT handled by a passport-jwt strategy. server/config/auth.config.js resolved the signing key as process.env.ACCESS_TOKEN_SECRET || "j6fz%Q9S2YJC?x|u", so an unset environment variable silently produced a symmetric key that anyone who can read the public repository already knows, and .env.example shipped the variable commented out - the insecure default therefore became the de facto production configuration for careless installs. Compounding the flaw, server/src/auth/auth_jwt.js verified only the signature and a truthy jwtPayload.access flag and then assigned the decoded payload to req.user without reloading the subject from the database, while server/src/lib/middleware.js performed authorization by reading req.user.user.roles and req.user.user.options straight out of that payload. The token is fully self-contained, so a forged payload asserting an administrator identity and the corresponding options is accepted as a legitimate privileged session. The root cause spans CWE-287 (improper authentication) with the contributing classes CWE-798 (use of hard-coded credentials) and CWE-1188 (insecure default initialization); the fix in 6.2.1 removes the literal fallback, generating a per-process crypto.randomBytes(64) secret with a startup security warning when the variable is missing, and emits an additional warning from server/index.js when the ephemeral secret is in use. Note that the advisory states that chaining this bypass with a separate command-injection flaw in repository operations would yield unauthenticated remote code execution on the host.
Know when Ansibleforms gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Default deployments ship the public fallback secret so forging an admin token is network, unauthenticated, low-complexity; full admin API access yields complete C/I/A loss.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
AnsibleForms is a self-hosted web application that turns automation into self-service forms. Prior to 6.2.1, AnsibleForms uses a public hard-coded fallback JWT signing secret from server/config/auth.config.js when ACCESS_TOKEN_SECRET is unset. An unauthenticated attacker can sign a self-contained token with privileged claims because server/src/auth/auth_jwt.js verifies the signature without reloading the user from the database, and server/src/lib/middleware.js trusts the token's roles and options for authorization. A forged token can therefore be accepted as an administrator session, resulting in authentication bypass and full privileged API access. This issue is fixed in version 6.2.1.
Technical POC Analysis
The defect is improper authentication, CWE-287, with hard-coded credentials and insecure default initialization also cited as CWE-798 and CWE-1188.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 public PoC link from nuclei
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
AnsibleForms, a platform used for IT automation, contains a critical flaw that allows unauthenticated attackers to gain full administrative control of any deployment missing a specific secret configuration. This puts all organizations using the software at risk of data theft, system compromise, and disruption to automated workflows. Leadership must treat this as an urgent configuration and security governance issue.
Ensure ACCESS_TOKEN_SECRET is set to a strong, unique value; restrict network access to AnsibleForms instances; monitor authentication logs for anomalous JWT usage.
Threat Model
4 threats: Spoofing, Elevation of Privilege, Tampering and 1 more
4-step attack chain with trust boundaries and controls
Full threat model - attack chain, trust boundaries, controls per stage and evidence - is part of the Pro and Business plans.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Ansibleforms
View allStored cross-site scripting in AnsibleForms 6.2.0 and earlier lets any authenticated user plant executable script in per
OS command injection (CWE-78) in AnsibleForms 6.2.0 and earlier lets an account holding repository or settings-managemen
EUVD-2026-129181
NVD
CVE.org
EPSS
GitHub
Exploit-DB