Skip to content

Security: preflightsh/preflight

SECURITY.md

Security Policy

Supported versions

Security fixes go into the latest minor release of the current major version. Older minors do not get backports, so upgrading to the latest release is the fix.

Version Supported
1.x Yes
< 1.0 No

Reporting a vulnerability

Please do not open a public issue for a security problem. Report it privately through GitHub's private vulnerability reporting:

https://github.com/preflightsh/preflight/security/advisories/new

Include the preflight version output, what you ran, and what happened. A proof of concept helps, but is not required. You should get a reply within a few days, and a fix or a plan once the report is confirmed.

Scanning untrusted repositories

Most checks only read files and make HTTP requests, but the vulnerability check runs the project's own package-manager tooling (npm audit, yarn audit, composer audit, bundle-audit, pip-audit, cargo-audit, or govulncheck) inside the scanned directory. Preflight closes the known ways for a repository to run its own code through them (Composer runs without plugins or scripts, the Cargo and Bundler audit tools are called directly so project aliases do not apply, Yarn 2 and later is not audited when the project has a .yarnrc.yml, govulncheck runs without cgo and cannot rewrite go.mod, and pip-audit only runs on a fully pinned requirements.txt, without installing anything), but these tools still read project-level configuration, so a hostile repository can influence what they do.

Preflight also runs git in the scanned directory to tell tracked files from ignored ones and to read the remote. It turns off core.fsmonitor and hooks and refuses directories laid out as bare repositories, so git configuration shipped in the repository cannot run commands.

To scan a repository you do not trust, skip that check:

preflight scan --skip vulnerability

or run Preflight in a sandbox, such as the container image with the project mounted read-only.

There aren't any published security advisories