unstale

npm / validator

validator

What changed in validator 13, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

1 breaking3 security5 new APIs and options5 behavior and defaults7 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.1 on npm

validator 1321 changes

Breaking changes 1

  • Restricts accepted characters to the valid slug charset.

    13.15.35release notes

Security 3

  • Handles a possible bypass involving URL-encoded content.

    13.15.26release notes

  • Validator is Vulnerable to Incomplete Filtering of One or More Instances of Special Elements

    13.15.22security advisory

  • validator.js has a URL validation bypass vulnerability in its isURL function

    13.15.20security advisoryrelease notes

New APIs and options 5

  • Adds the fr-DJ locale for mobile phone validation.

    13.15.35release notes

  • Adds the MC locale for postal code validation.

    13.15.35release notes

  • Adds the require_hashtag option to isHexColor.

    13.15.26release notes

  • Adds Indic locales ta-IN, te-IN, kn-IN, ml-IN, gu-IN, pa-IN, and or-IN.

    13.15.20release notes

  • Adds the ar-QA locale for mobile phone validation.

    13.15.20release notes

Behavior and default changes 5

  • Adds support for Kosovo, so XK is recognized as a valid ISO 3166-1 alpha-2 country code.

    13.15.35release notes

  • Adds support for Kosovo, so XXK is recognized as a valid ISO 3166-1 alpha-3 country code.

    13.15.35release notes

  • Allows any valid JSON value to pass validation, not just JSON objects or arrays.

    13.15.35release notes

  • The pt-BR locale now supports alphanumeric CNPJ formats and formatted CPF values.

    13.15.35release notes

  • Adds Indic locales ta-IN, te-IN, kn-IN, ml-IN, gu-IN, pa-IN, and or-IN.

    13.15.20release notes

Fixes and other changes 7

  • Ignores non-object options, avoiding unexpected handling when options are not objects.

    13.15.35release notes

  • Improves passport number validation for the MX locale.

    13.15.35release notes

  • Improves validation for the IR locale.

    13.15.26release notes

  • Improves handling of Unicode variation selectors.

    13.15.22release notes

  • Fixes a regression when validating hostnames with ports.

    13.15.22release notes

  • Improves the padding regex used for Base64 validation.

    13.15.20release notes

  • Improves VAT validation for the FR locale.

    13.15.20release notes