CVE-2024-41658
MEDIUM 6.1CVSS 3.1Casdoor has reflected XSS in QrCodePage.js (GHSL-2024-036)
Casdoor is a UI-first Identity and Access Management (IAM) / Single-Sign-On (SSO) platform. In Casdoor 1.577.0 and earlier, he purchase URL that is created to generate a WechatPay QR code is vulnerable to reflected XSS. When purchasing an item through casdoor, the product page allows you to pay via wechat pay. When using wechat pay, a QR code with the wechat pay link is displayed on the payment page, hosted on the domain of casdoor. This page takes a query parameter from the url successUrl, and redirects the user to that url after a successful purchase. Because the user has no reason to think that the payment page contains sensitive information, they may share it with other or can be social engineered into sending it to others. An attacker can then craft the casdoor link with a special url and send it back to the user, and once payment has gone though an XSS attack occurs.
- Published
- 20 Aug 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-gv2p-4mvg-g32hGO-2024-3086
- Sources
- NVDJSONOSV GHSA-gv2p-4mvg-g32hJSONOSV GO-2024-3086JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | casbin | casdoorcpe:2.3:a:casbin:casdoor:*:*:*:*:*:*:*:* |
all versions | |
| OSV | Go | github.com/casdoor/casdoor | <= 1.577.0 | |
| OSV | Go | github.com/casdoor/casdoor | all versions |
References
- https://github.com/casdoor/casdoor/blob/v1.577.0/web/src/QrCodePage.js · Product, WEB
- https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/ · Exploit, Third Party Advisory, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2024-41658 · ADVISORY
- https://github.com/casdoor/casdoor · PACKAGE
- https://github.com/advisories/GHSA-gv2p-4mvg-g32h · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 20 Aug 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 22 Aug 2024)