VYPR
Moderate severityNVD Advisory· Published Jan 26, 2023· Updated Apr 1, 2025

CVE-2021-36686

CVE-2021-36686

Description

YApi 1.9.1 is vulnerable to stored XSS via the remarks field on the interface edit page, allowing arbitrary JavaScript execution.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

YApi 1.9.1 is vulnerable to stored XSS via the remarks field on the interface edit page, allowing arbitrary JavaScript execution.

Vulnerability

Overview

CVE-2021-36686 describes a stored cross-site scripting (XSS) vulnerability in YApi version 1.9.1, an open-source API management platform. The flaw resides in the /interface/api edit page, specifically within the 'remarks' field, where user-supplied input is not properly sanitized before being stored and later rendered to other users [1]. The project's GitHub issue tracker confirms that the remarks component, which supports Markdown rendering, fails to escape HTML or SVG payloads, enabling injection of malicious scripts [3].

Attack

Vector

The vulnerability is exploitable by any authenticated user who can edit an API interface. An attacker creates or edits an interface, navigates to the remarks section, and inserts a crafted payload such as ` or ` (depending on whether the remarks editor is in Markdown mode) [3][4]. After saving, the payload is stored on the server. The attacker can then add a victim to the project group—no confirmation from the victim is required—and when the victim accesses the same interface edit page, the malicious script executes in their browser [3].

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the victim's session on the YApi instance. This could lead to session hijacking, exfiltration of API documentation or tokens, or further unauthorized actions within the platform. Since YApi is typically deployed on internal networks for team use, a stored XSS attack can propagate quickly through shared projects [1][3].

Mitigation

Status

As of the latest available references, YApi version 1.9.1 remains vulnerable. The maintainers have been notified through GitHub issues [#2190] and [#2240], but no official patch has been released as of the publication date of this CVE (2023-01-26). Users should consider applying input sanitization on the remarks field, upgrading to a patched version if one becomes available, or restricting edit permissions to trusted users to reduce risk [2][3][4].

AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
yapi-vendornpm
<= 1.9.1

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

0

No linked articles in our index yet.