Juanita Gomez
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # SPEC-11: Vulnerability disclosure --- title: "SPEC 11 — Vulnerability disclosure number: 11 date: 2025-05-12 author: - "Juanita Gomez <juanitagomezr2112@gmail.com>" - "Mihai Maruseac <mihai.maruseac@gmail.com>" discussion: https://discuss.scientific-python.org/t/spec-8-supply-chain-security endorsed-by: X --- ## Description This SPEC outlines the process for vulnerability disclosure. It aims to provide clear guidelines for the identification, reporting, and remediation of security vulnerabilities within projects. ### Core Project Endorsement ### Ecosystem Adoption TODO: Risks in smaller projects vs risks in larger projects. This might change strict adherence to the implementation here. ## Implementation Security vulnerabilities should be handled quickly, and sometimes privately. The primary goal of this process is to reduce the total time users are vulnerable to both publicly and privately known reports. To achieve this goal, the project should provide well-defined ways to report vulnerabilities (e.g., special email address such as `security@<project>.com`, forum, GitHub private security reporting, vulnerability reward programs). All suspected vulnerabilities should be handled in accordance with [Responsible Disclosure model](https://en.wikipedia.org/wiki/Coordinated_vulnerability_disclosure). The project should provide a mechanism for researchers to submit GPG encrypted vulnerability reports, for vulnerabilities with a higher degree of sensitivity. The project should ensure that a Security Response Team (SRT) exists. This team could be shared with other projects in the same organization, or within the same ecosystem. SRT has the following responsibilities: - Triage: assess the impact of any vulnerability. Can the vulnerability be replicated? Which projects are affected? What is the blast radius? Who is responsible for the fix? Is there a need for coordinated disclosure between multiple projects? - Infrastructure: create security advisories, ensure teams working on fixing a vulnerability can work in private, create tests for the vulnerability and its variants. - Disclosure: handle public messaging around the vulenrability by drafting an advisory to document the impact, how to upgrade, how to mitigate if upgrade is not possible. - Release: create patch releases containing the fix and notify the public. For each vulnerability, the SRT should follow these steps: 1. **Acknowledge the report**: The SRT should respond to any report in at most 24 hours. For this, there should be inventory of all the places where vulnerabilities can be reported, and SRT should monitor all of these (via automation and dashboards where possible). The SRT will handle communication with the reporter throughout the vulnerability fixing process, updating the reporter on the disclosure timeline. 2. **Triage the vulnerability**: The SRT should attempt to reproduce the vulnerabiltiy and analyze its impact. The SRT should rate the impact and consider coordinated disclosure based on [the traffic light protocol (TLP)](https://www.cisa.gov/news-events/news/traffic-light-protocol-tlp-definitions-and-usage). 3. **Assign the vulnerability fix to fixing team**: The SRT is not responsible for fixing all vulnerabilities themselves. They should delegate to a team that has the most accurate knowledge of the involved codebase. In general, the fixing team should be formed from maintainers of the affected projects. Depending on TLP level, other members of the project could be brought in, as needed, but only after consulting the SRT. 4. **Prepare a disclosure timeline**: Judging based on severity, complexity of the code base, development time, release work, dependencies on upstream, the SRT should create a timeline for when the vulnerability fix should be released and the public would be notified about the vulnerability. If the vulnerability has a low severity, the timeline can be extended to slow the release process to account for holidays, developer bandwidth, etc. 5. **Request and prepare a CVE**: The SRT would prepare a [security advisory](https://docs.github.com/en/code-security/security-advisories) in the affected repositories and obtain CVE numbers for the vulnerabilities. As many details as possible should be entered into the advisory. Each time new information is discovered, the advisory should be update. A vulnerability severity score, computed using [CVSS](https://www.first.org/cvss/) should be added. Members of the fixing team should be added to the advisory, to contribute details. 6. **Create a private fork[^1]** for the fixing team to fix the vulnerability in private. This is a temporary fork and should be deleted once the vulnerability is fixed. It should only be created to ensure CI can run on code fixing the vulnerability without accidentally disclosing the vulnerability[^2]. 7. **Plan and perform the patch release**. Once the fixing team has submitted all necessary fixes for the vulnerability and its variants and the SRT has verified that the work is completed, the two teams agree on a release timeline and perform the release as well as announce the vulnerability to the public[^3]. On the release day, the SRT and the fixing team: 1. merge all the commits from the private fork into the project repository 2. start patch releases for all affected versions in the supported range 3. publish all release binaries and packages 4. publish the security advisory 5. publish an announcement that is actionable, contains mitigation steps for users that cannot upgrade to the newly released patched versions, and is distributed to a wide audience. A template of the announcement could be: ``` Subject: Security release of $PROJECT $VERSION is now available To: ... Hello $PROJECT Community, The Security Response Team and maintainers of $PROJECT would like to announce the availability of $PROJECT $VERSION. This addresses the following CVE(s): * CVE-YEAR-ABCDEF (CVSS score $CVSS): $CVESUMMARY ... Upgrading to $VERSION is encouraged to fix these issues. **Am I vulnerable?** Run `$PROJECT --version` and if it indicates a base version of $OLDVERSION or older that means it is a vulnerable version. <!-- Update this for libraries that don't have a CLI capable of running `--version` to extract version information --> <!-- Provide details on features, extensions, configuration that make it likely that a system is vulnerable in practice. --> **How do I mitigate the vulnerability?** <!-- This is an optional section. Remove if there are no mitigations. --> **How do I upgrade?** <!-- Outline upgrade steps (e.g., use `uv install`) --> **Vulnerability Details** <!-- For each CVE, provide some details of the vulnerability and link to the advisory. --> ``` [^1]: All communication between the people involved in the fix must happen only on the advisory and the private fork, to prevent accidental disclosure. [^2]: The [`act`](https://github.com/nektos/act) project could be used to run CI locally if needed. [^3]: To ensure that the release and the announcement are seen in an adequate time-frame, it is recommend to use 4PM UTC on a non-Friday weekend as the disclosure time. This ensures that the announcement would be seen at morning time in APAC, early evening in EMEA and late evening in Asia. ## Notes A few days after the release, the SRT could write a retrospective of the vulnerability and fixing process, with details on everyone involved, links to PRs, and other relevant information. This is to encourage learning, preventing future similar vulnerabilities and providing opportunities for improving the disclosure process.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully