Please report security issues privately through GitHub: on this repository, open the Security tab and choose Report a vulnerability. Don't open a public issue for them.
Include what you found, how to reproduce it (with made-up or public locations, never private site data), and the version you used.
You should get an acknowledgement within 7 days. Confirmed issues are fixed in a new release, usually within 30 days, and disclosed in a GitHub security advisory and the changelog once the fix is out; you'll be credited unless you'd rather not be.
curtilage is pre-1.0: fixes go into the latest release only. Upgrade to get them.
From the next release on, gems are published by this repository's release workflow with a signed provenance attestation. gh attestation verify curtilage-X.Y.Z.gem --repo mohanenm/curtilage --signer-workflow mohanenm/curtilage/.github/workflows/release.yml --source-ref refs/tags/vX.Y.Z checks that the release workflow built the gem from the tagged commit (how releases are made). A gem published by hand in an emergency has no attestation, and its release notes say so.
docs/security.md says what the gem trusts and doesn't, who might attack it, and the defences.
In scope:
- The gem's code and the
curtilagecommand, including how it runs external programs (the DuckDB CLI, andcurlwhen installed) and builds the SQL it gives DuckDB. - Downloads of map data (Geofabrik, Overture's catalogue, opt-in Microsoft footprints): host allow-list, size caps, archive handling, the cache folder.
- Parsing untrusted input: pin files and map data.
- Outputs: the HTML preview, CSV, KML, GeoJSON and files written with
--out. - The repository's Docker image and CI workflows.
curtilage serve, the HTTP API.- The repository's benchmark tooling (not part of the gem): the labelling page, which loads USGS imagery under a Content-Security-Policy, and the parcel fetcher, which asks state parcel services for the public benchmark sites' parcels.
Out of scope: vulnerabilities in DuckDB or its extensions themselves (report them to DuckDB); the accuracy of OpenStreetMap or Overture data; and anything that needs control of your configuration (CURTILAGE_DUCKDB, setup_sql:), which is trusted by design.