CVE-2025-46820
published high CVSS 3.1 · 7.1phpgt/Dom exposes the GITHUB_TOKEN in Dom workflow run artifact
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| phpgt | — | Dom< 4.1.8 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| phpgt | Dom | < 4.1.8 (affected) | GitHub_M · cna |
Weaknesses
4- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-312 CWE-312: Cleartext Storage of Sensitive Information
- CWE-522 CWE-522: Insufficiently Protected Credentials
- CWE-538 CWE-538: Insertion of Sensitive Information into Externally-Accessible File or Directory
References
2Provider assertions
2GitHub_M · cna
phpgt/Dom exposes the GITHUB_TOKEN in Dom workflow run artifact
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 88dad3c1133f9cde55d9263d67ae19e479f522b29c63136c9581c38e7d04dce4
- Ingested
- 23 Sep 2026, 08:49:40 UTC
- Source record
- Official CVE record