# Firefly III Stored XSS in Audit Log Entry via piggy bank name

Source: https://junglewise.ai/threats/firefly-iii-stored-xss-in-audit-log-entry-via-piggy-bank-name-79c37ea2  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-12. Updated: 2026-06-12  
License: CC BY 4.0 with a link back

Severity: medium · CVSS 5.1 · Published 2026-06-12

Firefly III, a personal finance manager, is vulnerable to a security flaw where an attacker can inject malicious scripts into the name of a 'piggy bank'. When another user or administrator views the audit logs for transactions associated with that piggy bank, the script executes in their browser. This could allow an attacker to steal session cookies, hijack accounts, or perform unauthorized actions on behalf of other users.

Technologies: [grumpydictator/firefly-iii (Packagist)](https://junglewise.ai/threats/technologies/grumpydictator-firefly-iii). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Medium severity, with a CVSS score of 5.1, published 12 June 2026.

**Which products and versions are affected?** Firefly III <= 6.6.2; grumpydictator/firefly-iii (Packagist) <= 6.6.2.

**Is there a fix for This vulnerability?** A patch was published on 2026-06-12: Fix merged into develop/released in 6.6.3 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is This vulnerability attacked?** It is attacked over the network, in a network appliance.

**Am I affected?** Check whether you run Firefly III or grumpydictator/firefly-iii (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A stored cross-site scripting (XSS) vulnerability exists in Firefly III due to improper output escaping in the Twig template 'resources/views/list/ale.twig'. The template uses the '|raw' filter on a translation string containing the user-controlled piggy bank name to preserve HTML styling for currency, which inadvertently disables auto-escaping for the name itself. An attacker with low privileges can create a piggy bank with a malicious HTML payload (e.g., using 'onerror' attributes) via the API. When any user views the transaction audit log associated with this piggy bank, the payload executes. This bypasses the default nonce-based CSP because the policy does not restrict 'script-src-attr'. The issue is fixed in version 6.6.3 by explicitly escaping the name parameter.

## Affected products

- grumpydictator firefly-iii <= 6.6.2

## Timeline

- 2026-05-21: disclosed
- 2026-06-12: advisory: GitHub Advisory published
- 2026-06-12: patched: Fix merged into develop/released in 6.6.3

## References

- [https://api.github.com/users/alanturing881](https://api.github.com/users/alanturing881)
- [https://github.com/alanturing881](https://github.com/alanturing881)
- [https://api.github.com/users/alanturing881/gists%7B/gist_id%7D](https://api.github.com/users/alanturing881/gists%7B/gist_id%7D)
- [https://api.github.com/users/alanturing881/repos](https://api.github.com/users/alanturing881/repos)
- [https://avatars.githubusercontent.com/u/286391906?v=4](https://avatars.githubusercontent.com/u/286391906?v=4)
- [https://api.github.com/users/alanturing881/events%7B/privacy%7D](https://api.github.com/users/alanturing881/events%7B/privacy%7D)

## Related threats

- [Project Firefly III SSRF in webhook management component](https://junglewise.ai/threats/cve-2026-50886-project-firefly-iii-ssrf-in-webhook-management-component)
- [Firefly III user API endpoints expose all users' information to any authenticated user (IDOR)](https://junglewise.ai/threats/firefly-iii-user-api-endpoints-expose-all-users-information-to-any-28231c21)
- [Firefly III has a MFA bypass in oauth flow](https://junglewise.ai/threats/cve-2024-37893-firefly-iii-has-a-mfa-bypass-in-oauth-flow)
- [C5 Firefly III CSV Injection.](https://junglewise.ai/threats/c5-firefly-iii-csv-injection-f3c22e29)
- [Firefly III allows webhooks HTML Injection.](https://junglewise.ai/threats/cve-2024-22075-firefly-iii-allows-webhooks-html-injection)
