safe-regex
detect possibly catastrophic, exponential-time regular expressions
9
Versions
MIT
License
No
Install Scripts
Missing
Provenance
Supply chain provenance
Status for the latest visible version.
No SLSA provenance
npm registry signatures
gitHead linked
Without SLSA provenance there is no cryptographic link between this tarball and the public source — the axios compromise (March 2026) relied on exactly this gap.
Maintainers
davisjam
Keywords
catastrophicexponentialregexsafesandbox
Accepted risks
Findings the reviewer chose to accept rather than block on.
| Source | Rule | Reason | Accepted by | When |
|---|---|---|---|---|
| npm-metadata | suspicious-initial-version | AI (npm-metadata): Version 0.0.0 is a legitimate initial release by substack, a highly trusted npm publisher. Package has been in registry 12+ years with proper metadata and repo. | ai | |
| provenance | no-provenance | AI (provenance): Established 12-year-old package published before Sigstore provenance was available on npm; absence is expected and not a risk signal. | ai | |
| dependencies | unvetted-dep:regexp-tree | AI (dependencies): regexp-tree is a legitimate, well-known regex analysis library; its use is appropriate and expected for a ReDoS detection utility like safe-regex. | ai |