[meta] update security policy; add IRP
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Jordan Harband · committed by Jordan Harband · parent 977563e · Browse files · 2 files·+126 added−8 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+126 added−8 removed
- other:+126 added−8 removed
Provenance
- Commit
1aab8b2- Tree
c53d7b5- Author
Jordan Harband <ljharb@gmail.com>- Committer
Jordan Harband <ljharb@gmail.com>- Parent
977563e
2 files changed+126 added−8 removed
added:.github/INCIDENT_RESPONSE_PLAN.md+117 added
1+# Incident Response Process for **nvm**2+3+## Reporting a Vulnerability4+5+We take the security of **nvm** very seriously. If you believe you’ve found a security vulnerability, please inform us responsibly through coordinated disclosure.6+7+### How to Report8+9+> **Do not** report security vulnerabilities through public GitHub issues, discussions, or social media.10+11+Instead, please use one of these secure channels:12+13+1. **GitHub Security Advisories**14+ Use the **Report a vulnerability** button in the Security tab of the [nvm-sh/nvm repository](https://github.com/nvm-sh/nvm).15+16+2. **Email**17+ Follow the posted [Security Policy](https://github.com/nvm-sh/nvm/security/policy).18+19+### What to Include20+21+**Required Information:**22+- Brief description of the vulnerability type23+- Affected version(s) and components24+- Steps to reproduce the issue25+- Impact assessment (what an attacker could achieve)26+27+**Helpful Additional Details:**28+- Full paths of affected scripts or files29+- Specific commit or branch where the issue exists30+- Required configuration to reproduce31+- Proof-of-concept code (if available)32+- Suggested mitigation or fix33+34+## Our Response Process35+36+**Timeline Commitments:**37+- **Initial acknowledgment**: Within 24 hours38+- **Detailed response**: Within 3 business days39+- **Status updates**: Every 7 days until resolved40+- **Resolution target**: 90 days for most issues41+42+**What We’ll Do:**43+1. Acknowledge your report and assign a tracking ID44+2. Assess the vulnerability and determine severity45+3. Develop and test a fix46+4. Coordinate disclosure timeline with you47+5. Release a security update and publish an advisory and CVE48+6. Credit you in our security advisory (if desired)49+50+## Disclosure Policy51+52+- **Coordinated disclosure**: We’ll work with you on timing53+- **Typical timeline**: 90 days from report to public disclosure54+- **Early disclosure**: If actively exploited55+- **Delayed disclosure**: For complex issues56+57+## Scope58+59+**In Scope:**60+- **nvm** project (all supported versions)61+- Installation and update scripts (`install.sh`, `nvm.sh`)62+- Official documentation and CI/CD integrations63+- Dependencies with direct security implications64+65+**Out of Scope:**66+- Third-party forks or mirrors67+- Platform-specific installs outside core scripts68+- Social engineering or physical attacks69+- Theoretical vulnerabilities without practical exploitation70+71+## Security Measures72+73+**Our Commitments:**74+- Regular vulnerability scanning via GitHub Actions75+- Automated security checks in CI/CD pipelines76+- Secure scripting practices and mandatory code review77+- Prompt patch releases for critical issues78+79+**User Responsibilities:**80+- Keep **nvm** updated81+- Verify script downloads via PGP signatures82+- Follow secure configuration guidelines for shell environments83+84+## Legal Safe Harbor85+86+**We will NOT:**87+- Initiate legal action88+- Contact law enforcement89+- Suspend or terminate your access90+91+**You must:**92+- Only test against your own installations93+- Not access, modify, or delete user data94+- Not degrade service availability95+- Not publicly disclose before coordinated disclosure96+- Act in good faith97+98+## Recognition99+100+- **Advisory Credits**: Credit in GitHub Security Advisories (unless anonymous)101+102+## Security Updates103+104+**Stay Informed:**105+- Subscribe to GitHub releases for **nvm**106+- Enable GitHub Security Advisory notifications107+108+**Update Process:**109+- Patch releases (e.g., v0.40.3 → v0.40.4)110+- Out-of-band releases for critical issues111+- Advisories via GitHub Security Advisories112+113+## Contact Information114+115+- **Security reports**: Security tab of [nvm-sh/nvm](https://github.com/nvm-sh/nvm/security)116+- **General inquiries**: GitHub Discussions or Issues117+modified:.github/SECURITY.md+9 added-8 removed
123345673 unmodified lines11121314151617181516172122181920212223272425262728# Security
Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.Please file a private vulnerability report via GitHub, email [@ljharb](https://github.com/ljharb), or see https://tidelift.com/security if you have a potential security vulnerability to report.
## OpenSSF CII Best Practices
[](https://bestpractices.coreinfrastructure.org/projects/684)3 unmodified lines### PassingWe meet 100% of the “passing” criteria.
### SilverWe meet 95% of the “silver” criteria. The gaps are as follows: - we do not have a DCO or a CLA process for contributions. - because we only have one maintainer, the project has no way to continue if that maintainer stops being active. - we do not currently document “what the user can and cannot expect in terms of security” for our project. This is planned to be completed in 2023.We meet 100% of the “silver” criteria.
### GoldWe meet 65% of the “gold” criteria. The gaps are as follows: - we do not yet have the “silver” badge; see all the gaps above.We meet 78% of the “gold” criteria. The gaps are as follows: - because we only have one maintainer, the project has no way to continue if that maintainer stops being active. - We do not include a copyright or license statement in each source file. Efforts are underway to change this archaic practice into a suggestion instead of a hard requirement.
## Threat Model
See [THREAT_MODEL.md](./THREAT_MODEL.md).See [THREAT_MODEL.md](.github/THREAT_MODEL.md).
## Incident Response Plan
Please see our [Incident Response Plan](.github/INCIDENT_RESPONSE_PLAN.md).