@osm-conflation-engine/cli@3.6.0
AI Security Review
scanned 4d ago · by lpm-firewall-aiThe download path forwards a Geofabrik authorization cookie to any configured PBF URL, including hosts outside Geofabrik, without restricting the destination. This is concrete credential disclosure when a user runs the download with `OSM_AUTH` set.
Decision evidence
public snapshot- The config schema accepts any string as `pbf_url`; it only recommends Geofabrik’s internal host.
- For a non-internal PBF URL, the code warns but continues the authentication flow when `OSM_AUTH` is set.
- After authentication, the code checks for `gf_download_oauth` and returns that response as the cookie value alongside the original URL.
- The downloader passes that cookie value in a `Cookie` header to the returned URL using `curl -L`.
- Calling `run()` downloads by default unless the caller supplies different steps.
- The package has no install lifecycle scripts, and the download flow runs through the exported `run()` function.
- The username and password from `OSM_AUTH` are posted to OpenStreetMap’s login endpoint; the cross-host disclosure is the resulting Geofabrik authorization cookie.
Source & flagged code
7 flaggedThis package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/index.cjsView on unpkgFindings
Affected versions and remediation
This report applies to @osm-conflation-engine/cli@3.6.0.
See all versions of @osm-conflation-engine/cli for other recorded verdicts.
- Avoid installing @osm-conflation-engine/cli@3.6.0. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.