CVE-2026-81827: Wtforms Email Validator Misuse

Calling `Email(email)` instantiates a WTForms validator object with the argument as its error message rather than executing field validation. To validate a field manually, instantiate and call the validator with the form and field objects: `Email()(form, form.email)`.

Provally CuratedPublic repositoryMediumHigh confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-81827-wtforms-email-validator-misuse --engine opengrep

Description

Calling `Email(email)` instantiates a WTForms validator object with the argument as its error message rather than executing field validation. To validate a field manually, instantiate and call the validator with the form and field objects: `Email()(form, form.email)`.