CVE-2026-58655 PUBLISHED

Grav Flex Objects - Server-Side Template Injection via Dynamic Titles

Assigner: VulnCheck
Reserved: 01.07.2026 Published: 15.07.2026 Updated: 15.07.2026

The bundled Grav Flex Objects plugin (getgrav/grav-plugin-flex-objects) before 1.4.0 contains a stored server-side template injection vulnerability. When rendering dynamic collection or object titles, the plugin passes user-controlled frontmatter values (page.header.flex.collection.title or page.header.flex.object.title) to Twig's template_from_string(), causing them to be evaluated as Twig code rather than treated as text. This path bypasses Grav's Security::cleanDangerousTwig() sanitization. An attacker who can control the title frontmatter of a publicly reachable Flex Objects page can achieve arbitrary Twig execution and escalate to remote command execution via access to internal Grav services such as the scheduler.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 8.7

Product Status

Vendor getgrav
Product grav
Versions Default: unaffected
  • affected from 0 to 1.4.0 (excl.)
  • Version 1.4.0 is unaffected

Credits

  • n00o00b reporter

References

Problem Types

  • Improper Control of Generation of Code ('Code Injection') CWE