# CVE-2024-41658: GHSL-2024-036: Reflected XSS in QrCodePage.js

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-08-20T20:11:33.751Z
- Modified: 2026-06-17T07:47:59.957Z
- Also known as: GHSA-gv2p-4mvg-g32h, GO-2024-3086
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- casdoor casdoor: <= 1.577.0
- casbin casdoor: up to 1.577.0
- github.com/casdoor/casdoor (Go): up to 1.577.0; all versions

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor/> (exploit, third-party-advisory)
- <https://github.com/casdoor/casdoor/blob/v1.577.0/web/src/QrCodePage.js> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-41658> (advisory)
- <https://github.com/casdoor/casdoor> (package)
- <https://securitylab.github.com/advisories/GHSL-2024-035_GHSL-2024-036_casdoor> (advisory)
- <https://github.com/advisories/GHSA-gv2p-4mvg-g32h> (advisory)

## Sources

- CVE List: [CVE-2024-41658](https://www.cve.org/CVERecord?id=CVE-2024-41658), CVE Terms of Use, modified 2024-08-21
- GitHub Advisory Database: [GHSA-gv2p-4mvg-g32h](https://github.com/advisories/GHSA-gv2p-4mvg-g32h), CC-BY-4.0, modified 2024-08-30
- Go Vulnerability Database: [GO-2024-3086](https://pkg.go.dev/vuln/GO-2024-3086), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-41658](https://nvd.nist.gov/vuln/detail/CVE-2024-41658), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-41658 · Whole record: https://cve.day/CVE-2024-41658.json · Rebuilt by cve.day 2026-11-25T22:58:44.599Z
