# CVE-2025-31479: canonical/get-workflow-version-action can leak a partial GITHUB_TOKEN in exception output

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:H`
- 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.60%, higher than 49% of CVEs (2026-12-01)
- Published: 2025-04-02T21:09:34.354Z
- Modified: 2026-06-17T09:10:28.450Z
- Also known as: GHSA-26wh-cc3r-w6pj
- Weaknesses: CWE-532
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

canonical/get-workflow-version-action is a GitHub composite action to get commit SHA that GitHub Actions reusable workflow was called with. Prior to 1.0.1, if the get-workflow-version-action step fails, the exception output may include the GITHUB_TOKEN. If the full token is included in the exception output, GitHub will automatically redact the secret from the GitHub Actions logs. However, the token may be truncated—causing part of the GITHUB_TOKEN to be displayed in plaintext in the GitHub Actions logs. Anyone with read access to the GitHub repository can view GitHub Actions logs. For public repositories, anyone can view the GitHub Actions logs. The opportunity to exploit this vulnerability is limited—the GITHUB_TOKEN is automatically revoked when the job completes. However, there is an opportunity for an attack in the time between the GITHUB_TOKEN being displayed in the logs and the completion of the job. Users using the github-token input are impacted. This vulnerability is fixed in 1.0.1.

(As written by CVE List.)

## Affected

- canonical get-workflow-version-action: < 1.0.1
- canonical/get-workflow-version-action (GitHub Actions): before 1.0.1

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:H`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:H`

## References

- <https://github.com/canonical/get-workflow-version-action/security/advisories/GHSA-26wh-cc3r-w6pj> (web)
- <https://github.com/canonical/get-workflow-version-action/issues/2> (web)
- <https://github.com/canonical/get-workflow-version-action/commit/88281a62e96e1c0ef4df30352ae0668a9f3e3369> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-31479> (advisory)
- <https://github.com/canonical/get-workflow-version-action> (package)

## Sources

- CVE List: [CVE-2025-31479](https://www.cve.org/CVERecord?id=CVE-2025-31479), CVE Terms of Use, modified 2025-04-03
- GitHub Advisory Database: [GHSA-26wh-cc3r-w6pj](https://github.com/advisories/GHSA-26wh-cc3r-w6pj), CC-BY-4.0, modified 2025-04-03
- NVD: [CVE-2025-31479](https://nvd.nist.gov/vuln/detail/CVE-2025-31479), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-31479 · Whole record: https://cve.day/CVE-2025-31479.json · Rebuilt by cve.day 2026-11-25T22:58:55.970Z
