Reporting a Security Flaw in a Package Without Putting Users at Risk
Finding a vulnerability in a library you depend on puts you in a small position of responsibility. A public issue titled "remote code execution in parse()" tells attackers where to look before a fix exists. The norms below, often called coordinated disclosure, keep the report useful to the maintainer and quiet until a patched version is out.
Find the project's security channel
Look first for a SECURITY.md file in the repository root, in .github/ or in docs/. GitHub surfaces it under the repository's Security tab, and it should say how the maintainers want to be contacted and which versions still receive fixes. Common options are:
- Private vulnerability reporting on GitHub, if the maintainers have enabled it. It opens a draft security advisory that only you and the maintainers can see.
- A dedicated security email address listed in SECURITY.md.
- For larger ecosystems or foundations, a central security team that handles reports for many projects.
If none of these exist, open a public issue that says only "I believe I have found a security issue; how can I contact you privately?" with no technical detail. That gives the maintainer a chance to respond without disclosing anything.
What a good private report contains
- The affected package name and the versions you tested.
- The type of flaw in plain terms, for example prototype pollution, path traversal or unsafe deserialisation.
- A minimal proof of concept that demonstrates impact without harming any real system.
- Your assessment of who is affected: every user, or only those calling a specific function with untrusted input.
- Any suggested fix, clearly labelled as a suggestion.
- How you would like to be credited, or that you prefer not to be.
Do not test against other people's production services, and do not publish proof-of-concept code while the report is open.
Timelines and disclosure
Many security researchers propose a disclosure window, often expressed in weeks, after which they publish regardless. For volunteer-run packages, be flexible: a maintainer who replies and is working on a fix deserves more time than one who has not answered at all. Agree in writing on what happens next. Typically the maintainer prepares a patched release, requests a CVE identifier (GitHub can assign one for advisories it publishes), and publishes the advisory at the same moment the fix ships so that tools such as npm audit, pip-audit and govulncheck can warn users.
If you are the maintainer
Turn on private reporting before you need it, write a short SECURITY.md that names supported versions, and acknowledge reports quickly even if the fix will take time. The OpenSSF publishes guidance for maintainers on handling vulnerability reports, and it is worth reading once while nothing is on fire. Link the advisory from your changelog's Security heading so upgraders can see why a release matters. For ordinary non-security defects, the public route in our bug report guide is still the right one.