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

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-01-12T22:00:30.175Z
- Modified: 2026-07-07T17:56:32.181Z
- Also known as: GHSA-jm5j-jfrm-hm23, PYSEC-2026-1449
- Weaknesses: CWE-532
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- softwarepub hermes: >= 0.8.1, < 0.9.1
- hermes (PyPI): from 0.8.1 before 0.9.1
- software-metadata.pub hermes: from 0.8.1 before 0.9.1

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N`

## References

- <https://github.com/softwarepub/hermes/security/advisories/GHSA-jm5j-jfrm-hm23> (patch, vendor-advisory, web)
- <https://github.com/softwarepub/hermes/commit/7f64f102e916c76dc44404b77ab2a80f5a4e59b1> (patch, web)
- <https://github.com/softwarepub/hermes/commit/90cb86acd026e7841f2539ae7a1b284a7f263514> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22798> (advisory)
- <https://github.com/softwarepub/hermes> (package)
- <https://pypi.org/project/hermes> (package)
- <https://github.com/advisories/GHSA-jm5j-jfrm-hm23> (advisory)

## Sources

- CVE List: [CVE-2026-22798](https://www.cve.org/CVERecord?id=CVE-2026-22798), CVE Terms of Use, modified 2026-01-13
- GitHub Advisory Database: [GHSA-jm5j-jfrm-hm23](https://github.com/advisories/GHSA-jm5j-jfrm-hm23), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-22798](https://nvd.nist.gov/vuln/detail/CVE-2026-22798), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1449](https://osv.dev/vulnerability/PYSEC-2026-1449), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2026-22798 · Whole record: https://cve.day/CVE-2026-22798.json · Rebuilt by cve.day 2026-11-25T22:59:12.738Z
