# Security Policy The maintainers of `email.sublime-syntax` take the security of this project seriously. This document outlines our supported versions, vulnerability scope, and coordinated disclosure process. ## Supported Versions Security fixes and regular updates are provided for the latest release line. | Version | Supported | Notes | | ------- | ------------------ | ---------------------------------------------------------------------------- | | `1.x` | :white_check_mark: | Current active release line (Sublime Text 4 Build 4143+ and `bat` syntax) | | `0.x` | :x: | Legacy pre-1.0 releases (no new updates) | ## Reporting a Vulnerability **Please do not report security vulnerabilities via public GitHub issues, discussions, or pull requests.** Please submit vulnerability reports confidentially through GitHub's [Private Vulnerability Reporting](https://github.com/mariozaizar/email.sublime-syntax/security/advisories/new): 1. Navigate to the **Security** tab of the repository on GitHub. 2. Select **Advisories** from the left-hand menu. 3. Click **Report a vulnerability** to open a private disclosure draft. ## Scope ### In Scope - Regular Expression Denial of Service (ReDoS) or parser hangs in `email.sublime-syntax` or `email_qp.sublime-syntax` - HTML, CSS, or script injection in hover popups rendered by `email_plugin.py` - Unsafe file path handling, path traversal, or unintended disk writes in attachment export commands - Supply-chain or permission issues in repository GitHub Actions workflows ### Out of Scope - Vulnerabilities in Sublime Text itself, `bat` / `syntect`, or third-party packages (please report those directly to their respective maintainers) ## What to Include in Your Report To help us reproduce and resolve the issue quickly, please include: - **Type of vulnerability**: e.g., ReDoS, popup injection, unsafe file export, or workflow issue. - **Proof of Concept**: A minimal sample `.eml` file or steps to reproduce. - **Environment**: Operating system (macOS, Linux, Windows), Sublime Text build number (or `bat` version), and package version. - **Impact**: A brief description of what an attacker could achieve. - **Suggested Fix**: Any proposed patch or mitigation, if known. ## Response Process & Coordinated Disclosure 1. **Initial Acknowledgment**: We will acknowledge receipt of your report within **48 hours**. 2. **Investigation & Triage**: We will validate the report, assess severity, and share an initial response within **5 business days**. 3. **Remediation**: Confirmed vulnerabilities are fixed in a private security advisory branch. 4. **Coordinated Disclosure**: We follow a standard **90-day** coordinated disclosure window. Once a fix is released, we will publish a GitHub Security Advisory (requesting a CVE when appropriate) crediting the reporter unless anonymity is requested. ## Safe Harbor We support good-faith security research conducted in accordance with this policy. If you make a genuine effort to avoid privacy violations, data destruction, and service disruption while reporting vulnerabilities responsibly, we will not pursue legal action against you for your research on this repository.