# CVE-2025-46820: phpgt/Dom exposes the GITHUB_TOKEN in Dom workflow run artifact

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-05-06T18:48:52.176Z
- Modified: 2026-06-17T09:26:59.337Z
- Weaknesses: CWE-200, CWE-312, CWE-522, CWE-538
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

phpgt/Dom provides access to modern DOM APIs. Versions of phpgt/Dom prior to 4.1.8 expose the GITHUB_TOKEN in the Dom workflow run artifact. The ci.yml workflow file uses actions/upload-artifact@v4 to upload the build artifact. This artifact is a zip of the current directory, which includes the automatically generated .git/config file containing the run's GITHUB_TOKEN. Seeing as the artifact can be downloaded prior to the end of the workflow, there is a few seconds where an attacker can extract the token from the artifact and use it with the GitHub API to push malicious code or rewrite release commits in your repository. Any downstream user of the repository may be affected, but the token should only be valid for the duration of the workflow run, limiting the time during which exploitation could occur. Version 4.1.8 fixes the issue.

(As written by CVE List.)

## Affected

- phpgt Dom: < 4.1.8

## References

- <https://github.com/phpgt/Dom/security/advisories/GHSA-cwj7-6v67-2cm4>
- <https://github.com/phpgt/Dom/commit/205cddcc82c002dfa48e874494efbf4c49497394>

## Sources

- CVE List: [CVE-2025-46820](https://www.cve.org/CVERecord?id=CVE-2025-46820), CVE Terms of Use, modified 2025-05-06
- NVD: [CVE-2025-46820](https://nvd.nist.gov/vuln/detail/CVE-2025-46820), Public domain, modified 2026-06-17

---

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