CVE-2026-127096

Vscode-ansible: denial of service via quadratic documentation-regex scanning in the ansible language server

Published Nov 18, 2026 CVSS 3.1 · 3.3 Low EPSS n/a KEV · Not listed
Description
A flaw was found in the Ansible language server shipped with the vscode-ansible extension. The regular expression used to extract documentation fragments from Ansible module files is susceptible to quadratic-time scanning. A module file containing a crafted documentation string causes the language server to consume excessive CPU while indexing it, freezing the language service in the developer's editor. An attacker who can get a developer to open or index a workspace containing an attacker-supplied collection can cause a denial of service of the editor language features. This issue has no confidentiality or integrity impact.

Analysis

No analysis available yet

Remediation

Vendor Workaround

Open and index only workspaces and Ansible collections obtained from trusted sources.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description A denial-of-service flaw was found in the Ansible language server shipped with the vscode-ansible extension. The docsRegex regular expression in docsParser.ts, used when indexing module documentation, exhibits super-linear (quadratic) scanning on a crafted documentation string within a module file. When a developer opens or indexes a workspace containing an attacker-supplied Ansible collection, the single-threaded language server saturates its event loop and editor language features (completion, hover, diagnostics) freeze until the language service is restarted. This is developer-workstation tooling with no confidentiality or integrity impact. A flaw was found in the Ansible language server shipped with the vscode-ansible extension. The regular expression used to extract documentation fragments from Ansible module files is susceptible to quadratic-time scanning. A module file containing a crafted documentation string causes the language server to consume excessive CPU while indexing it, freezing the language service in the developer's editor. An attacker who can get a developer to open or index a workspace containing an attacker-supplied collection can cause a denial of service of the editor language features. This issue has no confidentiality or integrity impact.
Title Vscode-ansible: denial of service via quadratic documentation-regex scanning in the ansible language server
First Time appeared Redhat
Redhat ansible Automation Platform
CPEs cpe:/a:redhat:ansible_automation_platform:2
Vendors & Products Redhat
Redhat ansible Automation Platform
References
Type Values Removed Values Added
Description A denial-of-service flaw was found in the Ansible language server shipped with the vscode-ansible extension. The docsRegex regular expression in docsParser.ts, used when indexing module documentation, exhibits super-linear (quadratic) scanning on a crafted documentation string within a module file. When a developer opens or indexes a workspace containing an attacker-supplied Ansible collection, the single-threaded language server saturates its event loop and editor language features (completion, hover, diagnostics) freeze until the language service is restarted. This is developer-workstation tooling with no confidentiality or integrity impact.
Weaknesses CWE-1333
References
Metrics cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L'}

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 18, 2026, 7:38 PM
Reserved
Nov 12, 2026, 2:27 PM
Status
Awaiting Analysis
Published
Nov 18, 2026, 8:18 PM
Modified
Nov 18, 2026, 8:18 PM