Patchfirst
CVE-2021-41174 Public exploit Medium · 6.9 EPSS 85.4%

XSS vulnerability allowing arbitrary JavaScript execution

Fix:upgrade data to 8.2.3 or later Details ↓

grafana · grafana

Summary

Grafana, the open-source monitoring and observability platform, contains a cross-site scripting flaw in its AngularJS-rendered pages, where unvalidated input in the URL is evaluated as an AngularJS expression. An attacker who can get a victim to visit a crafted link that targets a page showing the menu bar login button can run arbitrary JavaScript in the victim's browser, provided the victim is unauthenticated and clicks the link.

Official description · CVE.org

Grafana is an open-source platform for monitoring and observability. In affected versions if an attacker is able to convince a victim to visit a URL referencing a vulnerable page, arbitrary JavaScript content may be executed within the context of the victim's browser. The user visiting the malicious link must be unauthenticated and the link must be for a page that contains the login button in the menu bar. The url has to be crafted to exploit AngularJS rendering and contain the interpolation binding for AngularJS expressions. AngularJS uses double curly braces for interpolation binding: {{ }} ex: {{constructor.constructor(‘alert(1)’)()}}. When the user follows the link and the page renders, the login button will contain the original link with a query parameter to force a redirect to the login page. The URL is not validated and the AngularJS rendering engine will execute the JavaScript expression contained in the URL. Users are advised to upgrade as soon as possible. If for some reason you cannot upgrade, you can use a reverse proxy or similar to block access to block the literal string {{ in the path.

Breakdown
64.8 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 7 months after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+7 mo

Affected versions and fixes

as published in the CVE record

grafana grafana

Affected: >= 8.0.0, < 8.2.3

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: @grafana/data.

npm@grafana/dataGHSA-3j9m-hcv9-rpj8

Upgrade to 8.2.3 or later

npmnpm install @grafana/data@8.2.3

The first fix for CVE-2021-41174. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
8.0.0 up to 8.2.38.2.3

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

5 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close