Description
A vulnerability has been found in mikefarah yq up to 4.53.3. This affects the function Encode of the file pkg/yqlib/encoder_properties.go. Such manipulation leads to escaping of output. It is possible to launch the attack remotely. The pull request to fix this issue awaits acceptance.
Published: 2026-11-09
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: Improper output escaping allowing potential code injection
Action: Apply patch
AI Analysis

Impact

The flaw lies in the Encode function of mikefarah yq versions up to 4.53.3, where certain characters are not correctly escaped in the generated output. A malicious actor can craft input that causes the produced YAML to contain unintended sequences. If the output is then consumed by downstream tools that interpret these sequences, it could trigger the execution of injected commands. The likely impact is therefore the potential for remote code execution, inferred from the description that downstream applications might interpret the malformed output.

Affected Systems

This vulnerability affects installations of mikefarah yq through version 4.53.3 inclusive. Versions 4.53.4 and newer contain the fix and are not impacted.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. No exploit data is currently available and the vulnerability is not listed in CISA’s KEV catalog. The EPSS score is not available, so the precise likelihood of exploitation cannot be quantified. Remote exploitation requires only the submission of crafted input to yq, but the absence of active exploits and the medium severity suggest a moderate risk that warrants applying a remedy as soon as possible.

Generated by OpenCVE AI on November 9, 2026 at 22:13 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade yq to a patched version (4.53.4 or later) once the fix is released.
  • Restrict the usage of yq with untrusted input and avoid executing its output in contexts that could interpret unescaped sequences.
  • Sanitize or validate all data passed to yq to remove characters that could lead to mis‑escaping.
  • Audit the output produced by yq before it is used in any execution context to detect potential injection.

Generated by OpenCVE AI on November 9, 2026 at 22:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 20:00:00 +0000

Type Values Removed Values Added
Description A vulnerability has been found in mikefarah yq up to 4.53.3. This affects the function Encode of the file pkg/yqlib/encoder_properties.go. Such manipulation leads to escaping of output. It is possible to launch the attack remotely. The pull request to fix this issue awaits acceptance.
Title mikefarah yq encoder_properties.go Encode escape output
First Time appeared Mikefarah
Mikefarah yq
Weaknesses CWE-116
CWE-74
CPEs cpe:2.3:a:mikefarah:yq:*:*:*:*:*:*:*:*
Vendors & Products Mikefarah
Mikefarah yq
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 6.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-11-09T19:45:15.712Z

Reserved: 2026-11-09T15:26:38.906Z

Link: CVE-2026-124987

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-11-09T20:18:10.927

Modified: 2026-11-09T20:18:11.080

Link: CVE-2026-124987

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T22:15:15Z

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')