CVE-2026-22798 hermes's raw options logging may disclose secrets passed in via subcommand options argument
Attackers with log file access can read sensitive API tokens and secrets logged in plain text by the hermes tool.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-22798?
CVE-2026-22798 is a medium-severity vulnerability in softwarepub hermes, published on 12 Jan 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-532
Which versions are affected by CVE-2026-22798?
3 open source packages ship an affected version, including hermes. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
hermes PyPI | From 0.8.1 | 0.9.1 |
hermes PyPI | From 0.8.1 | 0.9.1 |
hermes PyPI | From 0.8.1 | 0.9.1 |
Products include Software-Metadata.pub Hermes.
How do I fix CVE-2026-22798?
Upgrade hermes to 0.9.1 or later.
Is CVE-2026-22798 being exploited?
There is no known exploitation of CVE-2026-22798 in the wild and no public exploit code.
Sources
Also known as GHSA-jm5j-jfrm-hm23, PYSEC-2026-1449.