Skip to content

canship 0.8.2

Latest

Choose a tag to compare

@Tasomei Tasomei released this 15 Oct 10:06
· 5 commits to main since this release

Added

  • injection/path: reports file reads, writes and deletes whose path is built from request input (fs, fs/promises, fs-extra, Express res.sendFile/res.download without root). A whole path taken directly from the request is certain; joined or checked paths are likely. Values reduced with path.basename are not reported.
  • Credential formats: GitLab, Shopify, Linear, Notion, DigitalOcean, Sentry, PlanetScale, Doppler, Fly.io, Postman, Heroku, and webhook signing secrets (whsec_). These values are also masked in reports.

Fixed

  • Router mounts: nested cross-file mounts carry outer middleware and URL prefixes. Mounts registered only in test or example files no longer affect production routes.
  • Server requests: ssrf/request-url accepts an exit before the request when the parsed URL's origin, host or hostname must match a literal value or literal list.
  • Shared prefixes: sk_live_ (Stripe, Clerk) and sk- (OpenAI, DeepSeek and other compatible services) are attributed from the variable name or nearby code; otherwise findings name the shared format.
  • Placeholders: values in form placeholder attributes are no longer reported as credentials.

Changed

  • Titles and rotation steps for sk_live_ and sk- findings may differ from 0.8.1. Rule IDs and fingerprints are unchanged; existing baselines still match.
  • The Action defaults to 0.8.2.

Usage

npx canship@0.8.2 .

npm package · Documentation · 简体中文 · Changes since 0.8.1

Source commit: 237a98773dd4765cc63fabf77a2716553215d189.