/

CVE-2026-73967

Severity:

HIGH RISK

(8.7)

Stored Cross-Site Scripting (CWE-79) in AnsibleForms

CVE-2026-73967

Received

Vulnerability type

Category:

Stored Cross-Site Scripting

CWE:

CWE-79, CWE-922, CWE-1021

Impact:

Persistent script execution and potential account takeover

Severity:

HIGH RISK

(8.7)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

AnsibleForms can render attacker-influenced job output and designer-controlled values as HTML without sanitizing them. An authenticated user may be able to cause script execution when another user views affected content, potentially exposing that user's session token and enabling account takeover.

Affected context

The issue affects AnsibleForms deployments where attacker-influenced job output or designer-controlled HTML and expression values reach Vue components rendered with v-html without sanitization. The risk is greater when users with different privilege levels view shared or persistent content, especially when session tokens are accessible to client-side scripts and browser protections are absent.

Exploit preconditions

  • Attack surface: The web application's job-output and form-rendering paths
  • Required access: An authenticated account able to submit job input that is reflected in persistent output; designer-controlled values may also be relevant depending on application permissions
  • Trigger point: A victim views affected job output or form content
  • Why exploitation is possible: Attacker-influenced values are rendered as HTML without adequate escaping or sanitization, allowing scripts to execute in the application's browser context

Why this happens

The application treats untrusted values as renderable HTML. Server-side output formatting does not escape attacker-influenced content, and client-side components pass values to v-html without sanitization. This is a cross-site scripting flaw mapped to CWE-79; rendering untrusted content in a security-sensitive UI context also relates to CWE-1021. Storing a token in localStorage can increase the impact because scripts running in the page may be able to access it.

Potential impact

  • Malicious scripts may execute in the context of a user's AnsibleForms session.
  • A victim's JWT may be exposed, potentially enabling account takeover.
  • An attacker could act with the victim's permissions, including administrator privileges if an administrator is affected.
  • Persistent job output may expose multiple users who view the same content.

General mitigation guidance

Mitigation generally focuses on ensuring untrusted content is treated as data rather than executable markup.

  • Prefer framework-native text rendering and context-appropriate output encoding over raw HTML rendering.
  • Where rich HTML is necessary, apply a well-maintained allowlist-based sanitizer before rendering.
  • Reduce trust in submitted job input and designer-controlled values; validate them against expected formats and schemas.
  • Use browser security controls, including a restrictive Content Security Policy, as defense in depth.
  • Protect session credentials from script access where practical, and apply least privilege to user accounts and application actions.

How teams detect issues like this

  • Use static analysis to identify raw HTML rendering sinks such as v-html and trace whether their values can be influenced by users or designers.
  • Review output-formatting code for missing context-aware escaping and inspect paths from submitted input to persistent job output.
  • Add code-review checks and security policies that require sanitization for any intentional HTML rendering.
  • Test with security-focused checks for stored script injection in job output and form content, and verify that browser security policies are enforced.

Sources

SourceLink
github.comgithub.com/ansibleforms/ansibleforms/commit/cab0a86abd4f4154aa10a5a6af658ac734bd96f0
github.comgithub.com/ansibleforms/ansibleforms/pull/473
github.comgithub.com/ansibleforms/ansibleforms/releases/tag/6.2.1
github.comgithub.com/ansibleforms/ansibleforms/security/advisories/GHSA-wcmj-wqvw-6c88

Frequently asked

questions

Yes. Because affected output can persist, script execution may occur when another user views it.

The described job-input path requires an authenticated user who can submit input. A victim must also view the affected output or content.

Render untrusted values as text with context-appropriate encoding. If HTML is required, sanitize it with a strict allowlist before rendering.

Track untrusted data into browser rendering sinks, restrict raw HTML rendering through review and policy checks, and use a restrictive Content Security Policy as defense in depth.

Find out what's already
exploitable in your codebase.