WaratekVRT Sign in

CVE-2021-32827 MockServer

Affected softwareMockServer
Severity9.6 Critical CVSS 3.1 3 scores
WeaknessCross-site scripting (CWE-79)
Published16 Aug 2021
Updated17 Jun 2026

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.

CWE-74

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 5 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 2.2% chance in 30 days

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Exploit code for this candidate, published in a reviewed catalogue or a GitHub repository with 5 or more stars, or in use per CISA or VulnCheck; not only a CISA verdict, a forecast, or nothing at all
Finding This CVE is not listed in CISA KEV or VulnCheck KEV, CISA Vulnrichment records no active exploitation, no reviewed exploit catalogue carries an entry for it, and no GitHub PoC repository for it has 5 or more stars. Nobody has published exploit code worth tracing, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious.

CVSS

9.6 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H 3 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 9.6 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H NVD Primary published
CVSS 3.1 6.1 MEDIUM CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N security-advisories@github.com Secondary
CVSS 2.0 6.8 none AV:N/AC:M/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update January 2022 ↗ CPU 2022-Q1 Oracle Communications / Policy (MockServer) (1.14.0)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Communications Policy (MockServer) 1.14.0 1.14.0

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.mock-server:mockserver 0 none 5.11.2

Products and versions

3 products, 3 version entries
SourceVendorProductSchemeAffected versions
nvd mock-server mockserver generic any version
nvd oracle communications cloud native core policy generic 1.14.0
osv org.mock-server mockserver generic ≤ 5.11.2

References

URLTags
https://github.com/mock-server/mockserver PACKAGE
https://securitylab.github.com/advisories/GHSL-2021-059-mockserver ADVISORY
https://www.oracle.com/security-alerts/cpujan2022.html WEB
https://securitylab.github.com/advisories/GHSL-2021-059-mockserver/ Exploit, Third Party Advisory

Timeline

Published2021-08-16By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.