Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. j0k3r/graby
  4. ›
  5. GHSA-3h6j-9x8m-rg3g

GHSA-3h6j-9x8m-rg3g: Graby has stored XSS via iframe srcdoc Attribute in htmLawed Sanitization Config

March 31, 2026

Graby’s cleanupXss() function configures htmLawed with conflicting settings: safe=1 (which removes <iframe>) combined with 'elements' => '*+iframe-meta' (which re-enables <iframe>). htmLawed does not sanitize the srcdoc attribute, allowing injection of arbitrary JavaScript that executes when the content is rendered via |raw in templates.

References

  • github.com/advisories/GHSA-3h6j-9x8m-rg3g
  • github.com/j0k3r/graby
  • github.com/j0k3r/graby/commit/0295d828822f7a59c5751a8199973a4f965a99b0
  • github.com/j0k3r/graby/releases/tag/2.5.1
  • github.com/j0k3r/graby/security/advisories/GHSA-3h6j-9x8m-rg3g

Code Behaviors & Features

Detect and mitigate GHSA-3h6j-9x8m-rg3g with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.5.1

Fixed versions

  • 2.5.1

Solution

Upgrade to version 2.5.1 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/j0k3r/graby/GHSA-3h6j-9x8m-rg3g.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:43 +0000.