Description
Synk Sweater Comb before 3.8.8 contains a command injection vulnerability that allows an attacker who controls the .vervet.yaml configuration file to execute arbitrary OS commands by injecting malicious input into the linters.<key>.optic-ci.original branch name field. The expectGitBranch() function in src/lint.ts passes the unsanitized branch name directly into child_process.exec() via an unescaped template literal, enabling arbitrary command execution when the lint command is run against the repository.
Published: 2026-08-28
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Synk Sweater Comb releases before 3.8.8 contain a vulnerability that allows a user with control over the .vervet.yaml configuration file to inject and execute arbitrary operating system commands. The flaw arises when the expectGitBranch() function in src/lint.ts uses an unsanitized branch name directly in an unescaped template literal passed to child_process.exec(). When a linter command is run, the malicious input in the linters.<key>.optic-ci.original branch name field is executed, giving the attacker full command‑execution privileges on the host where the linting process runs. This weakness is categorized as CWE‑78. Affected systems are projects that use any pre‑3.8.8 version of the Snyk Sweater Comb tool. According to the CNA product list, the vulnerability applies to the snyk:sweater‑comb package. The impacted releases are all versions earlier than 3.8.8; no specific sub‑version range is listed beyond the general cutoff.

Affected Systems

Affected systems are projects that use any pre-3.8.8 version of the Snyk Sweater Comb tool. According to the CNA product list, the vulnerability applies to the snyk:sweater‑comb package. The impacted releases are all versions earlier than 3.8.8; no specific sub‑version range is listed beyond the general cutoff.

Risk and Exploitability

Risk and exploitability assessment indicates a CVSS score of 8.5, denoting high severity. The EPSS score is not available, and the vulnerability is not currently listed in the CISA KEV catalog, suggesting limited known exploitation. Nonetheless, the attack vector requires controlled modification of the .vervet.yaml file and execution of the lint command, which may be possible for contributors with write access to repository configuration. The lack of input validation in expectGitBranch() directly leads to the ability to run arbitrary commands on behalf of the process executing the lint check.

Generated by OpenCVE AI on August 28, 2026 at 22:42 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Sweater Comb to version 3.8.8 or later, which removes the unsanitized branch name usage.
  • If an upgrade is delayed, review the .vervet.yaml file and ensure only trusted users can modify it; restrict write permissions to the configuration folder.
  • Before running lint commands, validate or sanitize any branch name fields used by the tool or run the tool in a contained environment to isolate potential command execution.

Generated by OpenCVE AI on August 28, 2026 at 22:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
Description Synk Sweater Comb before 3.8.8 contains a command injection vulnerability that allows an attacker who controls the .vervet.yaml configuration file to execute arbitrary OS commands by injecting malicious input into the linters.<key>.optic-ci.original branch name field. The expectGitBranch() function in src/lint.ts passes the unsanitized branch name directly into child_process.exec() via an unescaped template literal, enabling arbitrary command execution when the lint command is run against the repository.
Title Synk Sweater Comb < 3.8.8 Command Injection via .vervet.yaml Branch Name
Weaknesses CWE-78
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-28T15:47:21.519Z

Reserved: 2026-08-17T20:07:25.282Z

Link: CVE-2026-75486

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-28T20:19:54.027

Modified: 2026-08-28T20:19:54.027

Link: CVE-2026-75486

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T22:45:05Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')