{"id":"GHSA-j4g3-3q8x-jxqp","aliases":["GHSA-j4g3-3q8x-jxqp"],"related":[],"kind":"vulnerability","state":"published","title":"dbt-core's secret env vars written to package-lock.json in plaintext","summary":"### Impact\n\nWhen 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.\n\n### Patches\n\nThe bug has been fixed in [dbt-core v1.7.3](https://github.com/dbt-labs/dbt-core/releases/tag/v1.7.3).\n\n### Mitigations\n\nRemove 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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\n\nWhen 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.\n\n### Patches\n\nThe bug has been fixed in [dbt-core v1.7.3](https://github.com/dbt-labs/dbt-core/releases/tag/v1.7.3).\n\n### Mitigations\n\nRemove 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.","format":"markdown","source":"ghsa"}],"published":"2023-12-08T15:38:37.000Z","modified":"2024-12-04T05:42:25.774Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N","score":3.2,"rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N","score":3.2,"rating":"LOW"}],"cwes":["CWE-315"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"1.7.0","status":"affected","fixed":"1.7.3"}],"ecosystem":"PyPI","package":"dbt-core","purl":"pkg:pypi/dbt-core","source":"ghsa"}],"references":[{"url":"https://github.com/dbt-labs/dbt-core/security/advisories/GHSA-j4g3-3q8x-jxqp","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/dbt-labs/dbt-core/commit/09f5bb3dcffeda7a60ad2b22c2891f237628ecd1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/dbt-labs/dbt-core","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/dbt-labs/dbt-core/releases/tag/v1.7.3","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j4g3-3q8x-jxqp","url":"https://github.com/advisories/GHSA-j4g3-3q8x-jxqp","licence":"CC-BY-4.0","modified":"2024-12-04T05:42:25.774Z"}],"updatedAt":"2026-11-25T22:56:35.684Z"}