VYPR
Moderate severityNVD Advisory· Published Nov 6, 2018· Updated Aug 5, 2024

CVE-2018-16474

CVE-2018-16474

Description

Stored XSS in tianma-static versions <=1.0.4 allows arbitrary JavaScript execution via stored user input.

AI Insight

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

Stored XSS in tianma-static versions <=1.0.4 allows arbitrary JavaScript execution via stored user input.

Vulnerability

A stored cross-site scripting (XSS) vulnerability exists in the npm package tianma-static versions <=1.0.4. The vulnerability allows an attacker to inject arbitrary JavaScript code into stored content that is later served to users without proper sanitization [1][2].

Exploitation

An attacker can exploit this vulnerability by providing malicious input that is stored by the application and later rendered in a web page. The attacker does not need authentication if the application allows unauthenticated users to submit content that is stored and displayed [1][2]. The exact steps depend on the application's use of tianma-static, but generally involve injecting a crafted payload into a field that is not sanitized.

Impact

Successful exploitation allows the attacker to execute arbitrary JavaScript in the context of a victim's browser. This can lead to theft of cookies, session tokens, or other sensitive data, as well as defacement or redirection to malicious sites [1][2]. The impact is limited to the client side and does not directly affect server resources.

Mitigation

As of the available references, no fixed version has been disclosed for tianma-static. Users should monitor the package repository for updates and consider replacing the package with a maintained alternative if no patch is released [1][2]. If feasible, implement output encoding and content security policies to mitigate the risk of XSS.

AI Insight generated on May 22, 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
tianma-staticnpm
<= 1.0.4

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.