# Security Policy

This repository adheres to the [PayPal Vulnerability Reporting Policy](https://hackerone.com/paypal).

## Reporting a Vulnerability

**Please do not report security vulnerabilities through public issues, discussions, or pull requests.**

Instead, report it using one of the following ways:

* Email the PayPal Security Team at [security@paypal.com](mailto:security@paypal.com)
* Submit through the [PayPal Bug Bounty Program](https://hackerone.com/paypal) on HackerOne

Please include the following in your report:

- A description of the vulnerability and its potential impact
- Steps to reproduce or a proof-of-concept
- The SDK version(s) affected
- Any suggested mitigations

You can expect an acknowledgement within 5 business days. We will work with you to understand and address the issue and will keep you informed of the remediation timeline.

## Supported Versions

We release security patches for the following versions of the Braintree PHP library:

| Major version | Status     | Released   | Deprecated   | Unsupported  |
| ------------- | ---------- | ---------- | ------------ | ------------ |
| 6.x.x         | Active     | March 2021 | TBA          | TBA          |
| 5.x.x         | Inactive   | March 2020 | March 2023   | March 2024   |
| 4.x.x         | Deprecated | May 2019   | March 2022   | March 2023   |
| 3.x.x         | Deprecated | May 2015   | March 2022   | March 2023   |

Security patches are only applied to **Active** versions. We recommend upgrading to 6.x.x if you are on an older version.

## Disclosure Policy

We are committed to working with security researchers in good faith. To support responsible disclosure, our team will:

- Acknowledge your report in a timely manner
- Keep you informed of our progress toward a fix
- Notify you before any public disclosure

We ask that you:

- Do not publicly disclose the issue before it has been resolved
- Avoid accessing, modifying, or deleting data that does not belong to you
- Make a good faith effort to avoid disruption to production systems

We appreciate responsible disclosure and your efforts to keep Braintree SDK users safe.
