p PatchFirst

CVE-2026-68921

CVE-2026-68921 · DiceBear: SVG injection via the unescaped rotate option in @dicebear/core (and fontSize/fontWeight in @dicebear/initials)

Здесь приведены факты из открытых источников об уязвимостях. Перед обновлением ознакомьтесь с исходным сообщением.

DiceBear is an avatar library for designers and developers. Prior to 9.4.3, @dicebear/core interpolates the rotate option into an SVG transform attribute without XML escaping in addRotate in packages/@dicebear/core/src/utils/svg.ts, while @dicebear/initials similarly emits fontSize and fontWeight without escaping in packages/@dicebear/initials/src/index.ts. Runtime callers can pass strings despite the numeric TypeScript types, break out of the attributes, and inject arbitrary SVG markup. Script can execute in the page origin when the generated avatar is inserted inline or served as image/svg+xml and opened directly, although exploitation requires an application to pass untrusted values into these normally developer-controlled options. This issue is fixed in @dicebear/core and @dicebear/initials version 9.4.3.

CVSS 4.7 · Средний · EPSS 0,3% · Есть исправление

Опубликовано
Обновлено

Стек: node

Затронутые продукты и версии

  • dicebear

    Версии
    • < 9.4.3: Затронуто

    Нет опубликованного исправления

  • @dicebear/core npm

    Затронутые диапазоны версий
    • SEMVER: < 9.4.3

    Обновитесь до 9.4.3

  • @dicebear/initials npm

    Затронутые диапазоны версий
    • SEMVER: < 9.4.3

    Обновитесь до 9.4.3

Первоисточники

Проверьте свой сервер →