faultline is pre-1.0. Security fixes are applied to the latest published version of each package. Please upgrade to the latest release before reporting an issue.
Please do not report security vulnerabilities through public GitHub issues.
Instead, report privately via GitHub's private vulnerability reporting (Security → Report a vulnerability). If that is unavailable, email the maintainer at the address on their GitHub profile.
Please include:
- The affected package and version.
- A description of the vulnerability and its impact.
- Steps to reproduce, ideally a minimal proof of concept.
You can expect an initial acknowledgement within a few days. Once the issue is confirmed, we will work on a fix and coordinate a release and disclosure with you.
faultline is a TypeScript error-handling library with zero runtime dependencies in its core package, which keeps its supply-chain surface small. Areas most relevant to security:
- Serialization / redaction (
serializeError,configureErrorsredaction paths) — ensuring error payloads don't leak sensitive data. Note thatredactPathsmatches against the serialized error structure and a non-matching path is a silent no-op (it fails open). For sensitive keys, prefer the globstar form**.password, which redacts the key at any depth. If you find a way correctly-configured redaction can be bypassed, that's in scope. - Deserialization of untrusted serialized errors.
This repo follows my cross-project baseline, documented in full (with rationale) at danfry1/standards → supply-chain.md. In short, it applies defense-in-depth against dependency-based supply-chain attacks:
- Install-time release-age gate.
bunfig.tomlsetsminimumReleaseAgeto 7 days, so installs refuse npm versions published more recently than that — long enough for most malicious releases to be caught and yanked. - Update cooldown. Dependabot (
.github/dependabot.yml) holds update PRs until a version is at least 7 days old (all semver levels), mirroring the install-time gate. - Pinned dependencies. All
devDependenciesare pinned to exact versions (no^/~), enforced in CI by syncpack (bun run lint:deps). Runtime/peer deps keep author-defined ranges so consumers can dedupe. The committedbun.lockpins the full tree for reproducible installs. - Pinned GitHub Actions. Every action is pinned to a full commit SHA (with a version comment), so a compromised or moved tag can't inject code into CI.
- Least-privilege CI. Workflows default to
permissions: read-all; write scopes are granted only to the specific jobs that need them. - Provenance. Publishes use npm provenance (
--provenanceviaNPM_CONFIG_PROVENANCE) so released artifacts are cryptographically linked to the building workflow. - Automated scanning. CodeQL (
codeql.yml) and OpenSSF Scorecard (scorecard.yml) run on push and weekly.
Thanks for helping keep faultline and its users safe.