Skip to content

\" bypasses email validation #2184

Open
@Ahmad-RW

Description

@Ahmad-RW

Describe the bug
If you pass the tokens \" (backslash and double quotes) then the validation will pass anyways.

Not sure if this extends to other decorators, I have only tested on email

Examples
<[email protected] ===> false, not valid

\"<[email protected] ===> true, valid

Additional context
Validator.js version: latest (13.9)
Node.js version: 16
OS platform: macOS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions