You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
dbt-core's secret env vars written to package-lock.json in plaintext
Low severity
GitHub Reviewed
Published
Dec 8, 2023
in
dbt-labs/dbt-core
•
Updated Feb 27, 2026
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.
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.
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.ymlfile.Patches
The bug has been fixed in dbt-core v1.7.3.
Mitigations
Remove any git URLs with plaintext secrets from
package-lock.ymlfile(s) on servers, workstations, or in source control. Rotate any tokens that have been written to version-controlled files.References