Skip to content

Commit ff4cdfe

Browse files
authored
docs: add a security policy (#1861)
1 parent f055c11 commit ff4cdfe

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
[![Downloads][downloads-image]][npm-url]
77
[![Backers on Open Collective](https://opencollective.com/validatorjs/backers/badge.svg)](#backers)
88
[![Sponsors on Open Collective](https://opencollective.com/validatorjs/sponsors/badge.svg)](#sponsors)
9-
[![Gitter](https://badges.gitter.im/validatorjs/community.svg)](https://gitter.im/validatorjs/community)
9+
[![Gitter][gitter-image]][gitter-url]
10+
[![Disclose a vulnerability][huntr-image]][huntr-url]
1011

1112
A library of string validators and sanitizers.
1213

@@ -267,6 +268,12 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
267268
[ci-url]: https://github.com/validatorjs/validator.js/actions?query=workflow%3ACI
268269
[ci-image]: https://github.com/validatorjs/validator.js/workflows/CI/badge.svg?branch=master
269270

271+
[gitter-url]: https://gitter.im/validatorjs/community
272+
[gitter-image]: https://badges.gitter.im/validatorjs/community.svg
273+
274+
[huntr-url]: https://huntr.dev/bounties/disclose/?target=https://github.com/validatorjs/validator.js
275+
[huntr-image]: https://cdn.huntr.dev/huntr_security_badge_mono.svg
276+
270277
[amd]: http://requirejs.org/docs/whyamd.html
271278
[bower]: http://bower.io/
272279

SECURITY.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
In the case of a confirmed security issue, only the current version of validator is guaranteed to be patched.
6+
7+
## Reporting a Vulnerability
8+
9+
**Please don't disclose security-related issues publicly.**
10+
11+
If you discover a vulnerability within validator, please use [huntr.dev disclosure form](https://huntr.dev/bounties/disclose/?target=https://github.com/validatorjs/validator.js). We will try to validate and respond to reports in a reasonable time. if the issue is confirmed, we will create a security advisory and a patch as soon as possible.

0 commit comments

Comments
 (0)