{"answers":{"affected":"2 open source packages ship an affected version, including dbt-core.","exploited":"There is no known exploitation of GHSA-j4g3-3q8x-jxqp in the wild and no public exploit code.","fix":"Upgrade dbt-core to 1.7.3 or later.","what":"GHSA-j4g3-3q8x-jxqp is a vulnerability in dbt-core, published on 8 Dec 2023."},"fix_prompt":"Check this codebase for GHSA-j4g3-3q8x-jxqp and fix it if it is affected.\n\nWhat it is: GHSA-j4g3-3q8x-jxqp is a vulnerability in dbt-core, published on 8 Dec 2023. \nExploitation: There is no known exploitation of GHSA-j4g3-3q8x-jxqp in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- dbt-core (PyPI): affected from 1.7.0; fixed in 1.7.3\n- dbt-core (PyPI): affected from 1.7.0; fixed in 1.7.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-j4g3-3q8x-jxqp/ (Markdown: https://insights.sbomify.com/GHSA-j4g3-3q8x-jxqp/index.md)","id":"GHSA-j4g3-3q8x-jxqp","markdown":"https://insights.sbomify.com/GHSA-j4g3-3q8x-jxqp/index.md","name":"GHSA-j4g3-3q8x-jxqp","record":{"aliases":[],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"unknown","non_default_config":false,"product_category":"dbt-core data tool","requires_auth":"none","summary":"dbt-core leaks Personal Access Tokens in plaintext within package-lock.yml when pulling from private repositories, exposing credentials to anyone with file access.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### 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.","ecosystems":["PyPI"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"dbt-core's secret env vars written to package-lock.json in plaintext","id":"GHSA-j4g3-3q8x-jxqp","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["1.7.3"],"introduced":["1.7.0"],"last_affected":[],"package":"dbt-core","purl":null,"source":"GHSA-j4g3-3q8x-jxqp"},{"ecosystem":"PyPI","fixed":["1.7.3"],"introduced":["1.7.0"],"last_affected":[],"package":"dbt-core","purl":"pkg:pypi/dbt-core","source":"GHSA-j4g3-3q8x-jxqp"}],"products":null,"published":"2023-12-08","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"dbt-core leaks Personal Access Tokens in plaintext within package-lock.yml when pulling from private repositories, exposing credentials to anyone with file access.","url":"https://insights.sbomify.com/GHSA-j4g3-3q8x-jxqp/"}