-
-
Notifications
You must be signed in to change notification settings - Fork 37.2k
Add a template for GHSAs #158612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
StanFromIreland
wants to merge
4
commits into
python:main
Choose a base branch
from
StanFromIreland:vuln-template
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+73
−0
Open
Add a template for GHSAs #158612
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| name: Vulnerability report | ||
| description: Privately report a potential security vulnerability in CPython | ||
| body: | ||
| - type: markdown | ||
| attributes: | ||
| value: | | ||
| **Not all bugs are vulnerabilities.** Before submitting, read the [Python security policy](https://devguide.python.org/security/policy/) to understand which issues are vulnerabilities and what versions of Python accept reports. | ||
|
|
||
| Keep the report short and in plain text: no headers, tables, PDFs, binaries, or severity and CVSS information. | ||
|
|
||
| Reports that do not contain a potential security vulnerability will be discarded without a reply. | ||
|
|
||
| To report vulnerabilities that affect other projects (such as pip or python.org), or if you are not sure where to send your report, email [security@python.org](mailto:security@python.org). | ||
| - type: textarea | ||
| id: summary | ||
| attributes: | ||
| label: Summary | ||
| description: A few sentences describing the vulnerability. | ||
| validations: | ||
| required: true | ||
| - type: textarea | ||
| id: threat_model | ||
| attributes: | ||
| label: Threat model | ||
| description: > | ||
| What does the attacker control, and what do they gain? Describe the code, configuration, or deployment that may exist in the real world and is exploitable. Where possible, cite the relevant part of the [security policy](https://devguide.python.org/security/policy/#what-types-of-bugs-are-vulnerabilities). | ||
| validations: | ||
| required: true | ||
| - type: textarea | ||
| id: proof_of_concept | ||
| attributes: | ||
| label: Proof of concept | ||
| description: > | ||
| A script that reproduces the issue and clearly indicates whether the vulnerability is present, such as exiting with `1` if vulnerable and `0` if not. If it depends on a specially constructed binary file, include a script to construct the file rather than the file itself. | ||
|
|
||
| Wrap scripts longer than a few lines in a [collapsed section](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-collapsed-sections) using `<details> ... </details>`. | ||
| validations: | ||
| required: true | ||
| - type: dropdown | ||
| id: versions | ||
| attributes: | ||
| label: "CPython versions tested on:" | ||
| description: > | ||
| If any tested version was not vulnerable, say which in the summary. Only [supported versions](https://devguide.python.org/versions/) accept reports. | ||
| multiple: true | ||
| options: | ||
| - "3.11" | ||
| - "3.12" | ||
| - "3.13" | ||
| - "3.14" | ||
| - "3.15" | ||
| - "3.16" | ||
| - "CPython main branch" | ||
| validations: | ||
| required: true | ||
| - type: textarea | ||
| id: patch | ||
| attributes: | ||
| label: Suggested fix | ||
| description: Ideally, a minimal patch with the mitigation. | ||
| validations: | ||
| required: false | ||
| - type: checkboxes | ||
| id: checklist | ||
| attributes: | ||
| label: Before submitting | ||
| options: | ||
| - label: I have read the security policy and evaluated this report against it. | ||
| required: true | ||
| - label: I have checked that this issue is not already resolved on the `main` branch. | ||
| required: true | ||
| - label: I have verified the factual validity of everything in this report, including any content produced by an LLM. | ||
| required: true | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.