Skip to content

ReDoS Vulnerability in Valibot (via a deprecated dependency @gcornut/valibot-json-schema) #662

@rxdiscovery

Description

@rxdiscovery

Hi 👋,

I would like to report a security vulnerability affecting your project through a transitive dependency, one of which is now deprecated.


📌 Vulnerability Details

  • Affected package: valibot
  • Vulnerable versions: >=0.31.0 <1.2.0
  • Severity: High
  • Type: ReDoS (Regular Expression Denial of Service)
  • Cause: Vulnerable EMOJI_REGEX
  • Official advisory: GHSA-vqpr-j7v3-hqw9

📦 Dependency chain involved

sveltekit-superforms → @gcornut/valibot-json-schema (deprecated) → valibot

⚠️ Impact

An attacker can exploit the vulnerable regex to trigger a Denial of Service (ReDoS) via specially crafted input.

🛠 Recommendation

  • Update valibot to ≥ 1.2.0 or any version containing the fix.
  • Since @gcornut/valibot-json-schema is deprecated, consider replacing it with a maintained alternative or a suitable JSON Schema mapping solution.
    (The official repo indicates the deprecation: https://github.com/gcornut/valibot-json-schema)

🙏 Thanks

Thank you for your work on this project..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions