{"cve":"CVE-2021-32827","nvd":{"published":"2021-08-16T21:15:08.373","modified":"2026-06-17T03:53:42.707","status":"Modified","description":"MockServer is open source software which enables easy mocking of any system you integrate with via HTTP or HTTPS. An attacker that can trick a victim into visiting a malicious site while running MockServer locally, will be able to run arbitrary code on the MockServer machine. With an overly broad default CORS configuration MockServer allows any site to send cross-site requests. Additionally, MockServer allows you to create dynamic expectations using Javascript or Velocity templates. Both engines may allow an attacker to execute arbitrary code on-behalf of MockServer. By combining these two issues (Overly broad CORS configuration + Script injection), an attacker could serve a malicious page so that if a developer running MockServer visits it, they will get compromised. For more details including a PoC see the referenced GHSL-2021-059.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6},"cwes":["CWE-79","CWE-74"],"references":["https://securitylab.github.com/advisories/GHSL-2021-059-mockserver/","https://www.oracle.com/security-alerts/cpujan2022.html","https://securitylab.github.com/advisories/GHSL-2021-059-mockserver/","https://www.oracle.com/security-alerts/cpujan2022.html"],"products":["mock-server:mockserver","oracle:communications_cloud_native_core_policy"],"source":"nvd","synced_at":"2026-10-19T21:21:57.125947417+00:00"},"epss":{"cve":"CVE-2021-32827","score":0.02164,"percentile":0.82239,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-v3cg-h3f6-2242","url":"https://osv.dev/vulnerability/GHSA-v3cg-h3f6-2242","summary":"Injection in MockServer","modified":"2024-02-19T05:30:07.401397Z","packages":[{"ecosystem":"Maven","name":"org.mock-server:mockserver","purl":"pkg:maven/org.mock-server/mockserver","ranges":["<=5.11.2"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}