Advisory

GHSA-j4g3-3q8x-jxqp

Also known as: None

Summary

dbt-core's secret env vars written to package-lock.json in plaintext

Details

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.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2023-12-08 15:38 UTC
Modified
2024-12-04 05:42 UTC

Affected packages and fixes

dbt-core

PyPI · All systems

Affected

  • introduced 1.7.0, fixed 1.7.3 (ecosystem)

Fixed versions

1.7.3

Fix

  • Fixed version 1.7.3
    pip install --upgrade dbt-core==1.7.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences