GHSA-j4g3-3q8x-jxqp dbt-core's secret env vars written to package-lock.json in plaintext
LowCVSS 3.2
- Published
- Updated
- Exploit status
- No public exploit known
Description
Impact
When used to pull source code from a private repository using a Personal Access Token (PAT), some versions of dbt-core write a URL with the PAT in plaintext to the package-lock.yml file.
Patches
The bug has been fixed in dbt-core v1.7.3.
Mitigations
Remove any git URLs with plaintext secrets from package-lock.yml file(s) on servers, workstations, or in source control. Rotate any tokens that have been written to version-controlled files.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi dbt-core(PyPI) | = 1.7.0; = 1.7.1; = 1.7.2; >= 1.7.0, < 1.7.3 | 1.7.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi dbt-core(PyPI) | >= 1.7.0, < 1.7.3 | 1.7.3 |
| pypi dbt-core(PyPI) | = 1.7.0 | No fix listed |
| pypi dbt-core(PyPI) | = 1.7.1 | No fix listed |
| pypi dbt-core(PyPI) | = 1.7.2 | No fix listed |
References
- github.com vendor-advisory
- github.com patch
- github.com product
- github.com
- github.com