Vulnerability advisory

GHSA-qv78-c8hc-438r

OpenMage vulnerable to XSS in Admin Notifications

Published Updated OSV record ↗

Also known as CVE-2025-64174

Severity
  • CVSS 4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Affected versions

Description

Summary

OpenMage versions v20.15.0 and earlier are affected by a stored Cross-Site Scripting (XSS) vulnerability that could be abused by an admin with direct database access or the admin notification feed source to inject malicious scripts into vulnerable fields. Malicious JavaScript may be executed in a victim’s browser when they browse to the page containing the vulnerable field.

Details

Unescaped translation strings and URLs are printed into contexts inside app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Actions.php. A malicious translation or polluted data can inject script.

  • Link labels use __() without escaping.
  • ’deleteConfirm()’ embeds a message without escaping.
PoC
  1. Add XSS to admin locale (e.g. app/locale/en_US/local.csv):
    "Read Details","[image]""Mark as Read","<script>alert(123)</script>"
    
  2. Flush Cache. Make sure locale is set to en_US.
  3. Add any admin notification (e.g. via test.php)
    <?phprequire 'app/Mage.php';Mage::app('admin');Mage::getModel('adminnotification/inbox')->setData([   'severity'  => Mage_AdminNotification_Model_Inbox::SEVERITY_NOTICE,   'date_added' => now(),   'title' => 'XSS renderer test',   'description' => 'Testing actions renderer',   'url' => 'https://example.com', // makes the "Read Details" link appear   'is_read' => 0, // makes the "Mark as Read" link appear   'is_remove' => 0,])->save();
    
  4. Open Admin → System → Notifications → Inbox.
  5. Profit.
Impact

The vulnerability is only exploitable by an attacker with administrative or translation privileges. Malicious JavaScript may be executed in a victim’s browser when they browse to the admin page containing the vulnerable fields.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools