News

AnsibleForms CVE-2026-73969 + CVE-2026-73968: Default JWT Secret and Repo Command Injection Can Chain to RCE. Update to 6.2.1

November 29, 2026 · 5 min read · John Crump
Neon diagram of an attacker with no login forging an admin JWT using the default secret (73969, 9.8), getting admin API access on AnsibleForms below 6.2.1, then injecting a command through the repo uri/branch to get a shell (73968, 7.2), inside a dashed ansibleforms frame, with notes reading chain = rce, nuclei tmpl, not in kev, fix 6.2.1 and set TOKEN_SECRET

If you use AnsibleForms to put self-service forms in front of your Ansible playbooks, update it today. Two bugs published on November 18, CVE-2026-73969 and CVE-2026-73968, are both fixed in version 6.2.1. The first lets someone with no login forge an admin session. The second lets an admin-level user run shell commands on the server. Put them together and you have a likely path from “no account” to “shell on the box that runs your automation.”

The short version

  • Affected: AnsibleForms before 6.2.1
  • CVE-2026-73969 (CVSS 9.8, critical): A hard-coded fallback JWT signing secret is used when ACCESS_TOKEN_SECRET isn’t set. Anyone can sign their own admin token.
  • CVE-2026-73968 (CVSS 7.2, high): OS command injection through repository URI, branch, name or host values
  • Login needed: None for 73969. 73968 needs repository-management rights, which a forged admin token provides.
  • Exploited? Not in CISA’s KEV catalog as of November 27. A public Nuclei detection template exists, and Brandefense found a public GitHub repo and a couple of dark-web chat mentions.
  • Fix: Upgrade to 6.2.1 and set a strong, unique ACCESS_TOKEN_SECRET

CVE-2026-73969: anyone can be admin

AnsibleForms signs its login tokens (JWTs) with a secret. If you never set ACCESS_TOKEN_SECRET, it falls back to a default value hard-coded in server/config/auth.config.js. That file is public on GitHub, so the “secret” isn’t secret at all.

It gets worse because of how tokens are checked. server/src/auth/auth_jwt.js verifies the signature but doesn’t reload the user from the database, and server/src/lib/middleware.js trusts whatever roles the token says it has. An attacker signs a token with the default secret, gives it admin roles, and the app accepts it. That’s full privileged API access with no password.

The key detail: this only bites if ACCESS_TOKEN_SECRET is unset. But “it works out of the box” installs are exactly the ones that tend to skip that step.

CVE-2026-73968: repo settings become shell commands

AnsibleForms can pull playbooks from Git repositories. When you create or update a repository, the values you enter (URI, branch, name or host) are processed in server/src/models/repo.model.js and end up in a system command without proper sanitizing. A user with repository-management privileges can slip shell syntax into one of those fields, and the command runs as the AnsibleForms application process.

On its own this needs a privileged account, which is why it scores 7.2 instead of 9.8.

Why the pair is worse than either one

The advisories list these as two separate bugs, but they line up neatly. Step one: forge an admin token with the default secret. Step two: use that admin access to create a repository with a poisoned branch or URI. Result: commands on the server, without ever having an account. No source I found spells out this chain, so treat it as my read of the two advisories rather than a confirmed exploit.

And it’s not just any server. AnsibleForms sits in front of your automation, so it often has SSH keys, Git credentials and vault passwords for the systems your playbooks manage. A shell there can reach a lot more than one box.

Am I exposed? Quick checks

First, your version. It’s shown in the web UI. If you run the Docker image, check the tag you’re running:

docker ps --format '{{.Names}}\t{{.Image}}' | grep -i ansibleforms

Anything below 6.2.1 is affected by both bugs. Next, check whether the token secret is actually set (swap in your container name):

docker exec ansibleforms printenv ACCESS_TOKEN_SECRET

If that prints nothing, you’re on the hard-coded default and wide open to CVE-2026-73969. For a non-Docker install, check the environment or .env file the Node server starts with.

How to fix it

1. Upgrade to 6.2.1

That’s the only real fix for the command injection. With Docker Compose, bump the image tag to 6.2.1 (or later) and recreate the container:

docker compose pull
docker compose up -d

2. Set your own token secret

Do this even after upgrading. Generate a long random value:

openssl rand -hex 32

Add it as ACCESS_TOKEN_SECRET in your compose file or .env, then restart. Changing the secret also kills every existing token, including any forged ones, so everyone will have to log in again. That’s what you want.

3. Keep it off the internet

A tool that can run playbooks against your infrastructure shouldn’t be reachable by the whole world. Put it behind a VPN or limit it to your admin subnet at the reverse proxy or firewall.

Signs someone already tried

If you were running an old version without a token secret, take a few minutes to look around:

  • Review your repositories in AnsibleForms for any you didn’t create, or URIs and branch names containing ;, |, $(, backticks, curl, wget or bash.
  • Check the container or server logs for API activity from IP addresses you don’t recognize, especially admin actions.
  • Look for unexpected processes running as the AnsibleForms user, or outbound connections from the container.

If anything looks off, treat the box as compromised and rotate every SSH key, Git token and vault password AnsibleForms had access to.

Bottom line

A public default secret is about as easy as authentication bypasses get, and there’s already a scanner template that looks for it. Upgrade to 6.2.1, set your own ACCESS_TOKEN_SECRET, and keep the UI off the internet. It’s a ten-minute job.

Sources: Vulners (CVE-2026-73969), Strix (CVE-2026-73968), OffSeq Radar, Brandefense, Exploit Intel.

Leave a Reply

Your email address will not be published. Required fields are marked *