CVE-2021-22957 in Ui Unifi Protect and 1 more product
A Cross-Origin Resource Sharing (CORS) vulnerability found in UniFi Protect application Version 1.19.2 and earlier allows a malicious actor who has convinced a privileged user to access a URL with malicious code to take over said user’s account.This vulnerability is fixed in UniFi Protect application Version 1.20.0 ...
Affects 2 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Ui | Unifi Protect (device and firmware) | < 1.20.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
A Cross-Origin Resource Sharing (CORS) vulnerability found in UniFi Protect application Version 1.19.2 and earlier allows a malicious actor who has convinced a privileged user to access a URL with malicious code to take over said user’s account.This vulnerability is fixed in UniFi Protect application Version 1.20.0 and later.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-22957 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-243527-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2021-11-24 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-16: CWE-16
Analysis AI-written, not human-reviewed
A Cross-Origin Resource Sharing (CORS) vulnerability in UniFi Protect application versions 1.19.2 and earlier allows a malicious actor to take over a privileged user's account if the user accesses a URL with malicious code.
The vulnerability arises from improper CORS policy configuration, enabling an attacker to craft a malicious URL that, when accessed by a user with the necessary privileges, can lead to unauthorized access and account takeover.
Questions
What is CVE-2021-22957?
A Cross-Origin Resource Sharing (CORS) vulnerability in UniFi Protect application versions 1.19.2 and earlier allows a malicious actor to take over a privileged user's account if the user accesses a URL with malicious code.
What is the CVSS score for CVE-2021-22957?
CVE-2021-22957 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.9%.
Is CVE-2021-22957 actively exploited?
No confirmed active exploitation of CVE-2021-22957 as of 2026-09-25.
How do I remediate CVE-2021-22957?
Priority: IMMEDIATE. Advisory: https://community.ui.com/releases/Security-Advisory-Bulletin-021-021/62bd8841-6603-4fee-9dba-73037148f173 PSIRT: [email protected]
What systems are affected by CVE-2021-22957?
CVE-2021-22957 affects Ui Unifi Protect.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Ui","product":"Unifi Protect","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.