CWE-79
AllowedImproper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Abstraction: Base · Status: Stable
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
66722 vulnerabilities reference this CWE, most recent first.
GHSA-298J-VH9R-MC78
Vulnerability from github – Published: 2026-06-25 06:30 – Updated: 2026-06-25 06:30The Gutenberg Essential Blocks – Page Builder for Gutenberg Blocks & Patterns plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'configurablePrefix' Block Attribute in all versions up to, and including, 6.1.4 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
{
"affected": [],
"aliases": [
"CVE-2026-10833"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-06-25T04:17:52Z",
"severity": "MODERATE"
},
"details": "The Gutenberg Essential Blocks \u2013 Page Builder for Gutenberg Blocks \u0026 Patterns plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the \u0027configurablePrefix\u0027 Block Attribute in all versions up to, and including, 6.1.4 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.",
"id": "GHSA-298j-vh9r-mc78",
"modified": "2026-06-25T06:30:41Z",
"published": "2026-06-25T06:30:41Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-10833"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/essential-blocks/tags/6.1.4/includes/Blocks/TableOfContents.php#L245"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/essential-blocks/tags/6.1.4/includes/Blocks/TableOfContents.php#L425"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/essential-blocks/tags/6.1.4/src/blocks/table-of-contents/src/frontend.js#L448"
},
{
"type": "WEB",
"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/0efe8bbd-c1c9-48ed-adab-34c0ac3da8bf?source=cve"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-298M-HVGH-X9CW
Vulnerability from github – Published: 2023-06-20 15:31 – Updated: 2023-06-27 21:59Cross Site Scripting vulnerability in Alluxio v.1.8.1 allows a remote attacker to executea arbitrary code via the path parameter in the browse board component.
{
"affected": [
{
"package": {
"ecosystem": "Maven",
"name": "org.alluxio:alluxio-parent"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "1.8.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2020-21485"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2023-06-21T22:09:49Z",
"nvd_published_at": "2023-06-20T15:15:11Z",
"severity": "MODERATE"
},
"details": "Cross Site Scripting vulnerability in Alluxio v.1.8.1 allows a remote attacker to executea arbitrary code via the path parameter in the browse board component.",
"id": "GHSA-298m-hvgh-x9cw",
"modified": "2023-06-27T21:59:30Z",
"published": "2023-06-20T15:31:09Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-21485"
},
{
"type": "WEB",
"url": "https://github.com/Alluxio/alluxio/issues/10552"
},
{
"type": "PACKAGE",
"url": "https://github.com/Alluxio/alluxio"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
}
],
"summary": "Alluxio Cross Site Scripting vulnerability"
}
GHSA-298Q-WV2H-V5VW
Vulnerability from github – Published: 2022-05-24 17:00 – Updated: 2023-09-26 19:16A stored cross-site scripting (XSS) vulnerability exists in Magento 2.2 prior to 2.2.10, Magento 2.3 prior to 2.3.3 or 2.3.2-p1. An authenticated user can inject arbitrary JavaScript code via title of an order when configuring sales payment methods for a store.
{
"affected": [
{
"package": {
"ecosystem": "Packagist",
"name": "magento/community-edition"
},
"ranges": [
{
"events": [
{
"introduced": "2.2.0"
},
{
"fixed": "2.2.10"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "Packagist",
"name": "magento/community-edition"
},
"ranges": [
{
"events": [
{
"introduced": "2.3.0"
},
{
"fixed": "2.3.2-p1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2019-8142"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2023-07-17T23:41:51Z",
"nvd_published_at": "2019-11-06T00:15:00Z",
"severity": "MODERATE"
},
"details": "A stored cross-site scripting (XSS) vulnerability exists in Magento 2.2 prior to 2.2.10, Magento 2.3 prior to 2.3.3 or 2.3.2-p1. An authenticated user can inject arbitrary JavaScript code via title of an order when configuring sales payment methods for a store.",
"id": "GHSA-298q-wv2h-v5vw",
"modified": "2023-09-26T19:16:37Z",
"published": "2022-05-24T17:00:27Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2019-8142"
},
{
"type": "WEB",
"url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/magento/product-community-edition/CVE-2019-8142.yaml"
},
{
"type": "PACKAGE",
"url": "https://github.com/magento/magento2"
},
{
"type": "WEB",
"url": "https://magento.com/security/patches/magento-2.3.3-and-2.2.10-security-update"
},
{
"type": "WEB",
"url": "https://web.archive.org/web/20220121051105/https://magento.com/security/patches/magento-2.3.3-and-2.2.10-security-update"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
}
],
"summary": "Magento 2 Community Edition XSS Vulnerability"
}
GHSA-298R-5C48-7Q2R
Vulnerability from github – Published: 2022-11-16 12:00 – Updated: 2022-12-15 18:49JUnit Plugin 1159.v0b_396e1e07dd and earlier converts HTTP(S) URLs in test report output to clickable links.
This is done in an unsafe manner, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers with Item/Configure permission.
JUnit Plugin 1160.vf1f01a_a_ea_b_7f no longer converts URLs to clickable links.
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 1159.v0b"
},
"package": {
"ecosystem": "Maven",
"name": "org.jenkins-ci.plugins:junit"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1160.vf1f01a_a_ea_b_7f"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2022-45380"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2022-11-21T22:20:55Z",
"nvd_published_at": "2022-11-15T20:15:00Z",
"severity": "HIGH"
},
"details": "JUnit Plugin 1159.v0b_396e1e07dd and earlier converts HTTP(S) URLs in test report output to clickable links.\n\nThis is done in an unsafe manner, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers with Item/Configure permission.\n\nJUnit Plugin 1160.vf1f01a_a_ea_b_7f no longer converts URLs to clickable links.",
"id": "GHSA-298r-5c48-7q2r",
"modified": "2022-12-15T18:49:47Z",
"published": "2022-11-16T12:00:22Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-45380"
},
{
"type": "WEB",
"url": "https://github.com/jenkinsci/junit-plugin/commit/f1f01aaeab7fa35017112f6163b89283390f5da8"
},
{
"type": "PACKAGE",
"url": "https://github.com/jenkinsci/junit-plugin"
},
{
"type": "WEB",
"url": "https://www.jenkins.io/security/advisory/2022-11-15/#SECURITY-2888"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2022/11/15/4"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Jenkins JUnit Plugin subject to Cross-site Scripting via URL conversion"
}
GHSA-299M-FX62-R98P
Vulnerability from github – Published: 2023-12-15 12:30 – Updated: 2023-12-15 12:30Adobe Experience Manager versions 6.5.18 and earlier are affected by a reflected Cross-Site Scripting (XSS) vulnerability. If a low-privileged attacker is able to convince a victim to visit a URL referencing a vulnerable page, malicious JavaScript content may be executed within the context of the victim's browser.
{
"affected": [],
"aliases": [
"CVE-2023-48443"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-12-15T11:15:10Z",
"severity": "MODERATE"
},
"details": "Adobe Experience Manager versions 6.5.18 and earlier are affected by a reflected Cross-Site Scripting (XSS) vulnerability. If a low-privileged attacker is able to convince a victim to visit a URL referencing a vulnerable page, malicious JavaScript content may be executed within the context of the victim\u0027s browser.",
"id": "GHSA-299m-fx62-r98p",
"modified": "2023-12-15T12:30:26Z",
"published": "2023-12-15T12:30:26Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-48443"
},
{
"type": "WEB",
"url": "https://helpx.adobe.com/security/products/experience-manager/apsb23-72.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-299R-Q2GJ-44GJ
Vulnerability from github – Published: 2023-10-16 21:30 – Updated: 2024-04-04 08:41The Simple Posts Ticker WordPress plugin before 1.1.6 does not validate and escape some of its shortcode attributes before outputting them back in a page/post where the shortcode is embed, which could allow users with the contributor role and above to perform Stored Cross-Site Scripting attacks.
{
"affected": [],
"aliases": [
"CVE-2023-4646"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-10-16T20:15:15Z",
"severity": "MODERATE"
},
"details": "The Simple Posts Ticker WordPress plugin before 1.1.6 does not validate and escape some of its shortcode attributes before outputting them back in a page/post where the shortcode is embed, which could allow users with the contributor role and above to perform Stored Cross-Site Scripting attacks.",
"id": "GHSA-299r-q2gj-44gj",
"modified": "2024-04-04T08:41:31Z",
"published": "2023-10-16T21:30:26Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-4646"
},
{
"type": "WEB",
"url": "https://wpscan.com/vulnerability/c34f8dcc-3be6-44ad-91a4-7c3a0ce2f9d7"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-299R-WVHM-RV9X
Vulnerability from github – Published: 2022-05-17 04:01 – Updated: 2022-05-17 04:01Cross-site scripting (XSS) vulnerability in the runtime engine in the Newphoria applican framework before 1.13.0 for Android and iOS allows remote attackers to inject arbitrary web script or HTML via a crafted URL that triggers WebView anchor attachment in an applican application, a different vulnerability than CVE-2015-7771.
{
"affected": [],
"aliases": [
"CVE-2015-7772"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2015-11-20T03:59:00Z",
"severity": "MODERATE"
},
"details": "Cross-site scripting (XSS) vulnerability in the runtime engine in the Newphoria applican framework before 1.13.0 for Android and iOS allows remote attackers to inject arbitrary web script or HTML via a crafted URL that triggers WebView anchor attachment in an applican application, a different vulnerability than CVE-2015-7771.",
"id": "GHSA-299r-wvhm-rv9x",
"modified": "2022-05-17T04:01:50Z",
"published": "2022-05-17T04:01:50Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2015-7772"
},
{
"type": "WEB",
"url": "http://jvn.jp/en/jp/JVN64625488/995707/index.html"
},
{
"type": "WEB",
"url": "http://jvn.jp/en/jp/JVN64625488/index.html"
},
{
"type": "WEB",
"url": "http://jvndb.jvn.jp/jvndb/JVNDB-2015-000179"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-299V-6GMM-7Q85
Vulnerability from github – Published: 2022-05-01 23:38 – Updated: 2025-04-03 15:30Cross-site scripting (XSS) vulnerability in SolutionSearch.do in ManageEngine ServiceDesk Plus 7.0.0 Build 7011 for Windows allows remote attackers to inject arbitrary web script or HTML via the searchText parameter. NOTE: the provenance of this information is unknown; the details are obtained solely from third party information.
{
"affected": [],
"aliases": [
"CVE-2008-1299"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-03-12T17:44:00Z",
"severity": "MODERATE"
},
"details": "Cross-site scripting (XSS) vulnerability in SolutionSearch.do in ManageEngine ServiceDesk Plus 7.0.0 Build 7011 for Windows allows remote attackers to inject arbitrary web script or HTML via the searchText parameter. NOTE: the provenance of this information is unknown; the details are obtained solely from third party information.",
"id": "GHSA-299v-6gmm-7q85",
"modified": "2025-04-03T15:30:41Z",
"published": "2022-05-01T23:38:44Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-1299"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/29310"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/28191"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-299V-8PQ9-5GJQ
Vulnerability from github – Published: 2026-02-23 22:10 – Updated: 2026-02-27 21:41Summary
A potential unsafe operation occurs in component MarkdownRenderer.jsx, allowing for Cross-Site Scripting(XSS) when the model outputs items containing <script> tag.
Details
Line 212-231 of MarkdownRenderer.jsx is unsafe, it use dangerouslySetInnerHTML to preview html the model generates. This can trigger malcious scripts.
PoC
A simple way to exploit that is to ask the model in the playground, with prompt: "请帮我写个脚本,跳转到google", and then the browser will navigate to the google.com without user interference.
Impact
Potential malcious activity to the user using playground, if the model api is altered to output unintended codes.
Also, users may not be easily rid the exploit, since the record of the chat containing XSS script is stored, once opening the page later, the script will be re-triggered.
Potential Workaround
The preview may be placed in an iframe sandbox, dangerous html strings should be purified before rendering.
The reply generated for test is as below:
这是一个为您编写的单页 HTML 文件。它使用了两种方式来实现跳转,以确保在任何情况下都能工作:
- JavaScript (
window.location.replace):这是最常用且高效的方法,它会立即跳转,并且不会保留当前页面在浏览器历史记录中(这样用户按“后退”键不会回到这个跳转页)。 - HTML Meta Refresh:作为后备方案。如果用户的浏览器禁用了 JavaScript,这个标签会在 1 秒后将用户带往 Google。
- 手动链接:页面中显示了一个备用链接,以防自动跳转被拦截或失效。
您可以直接保存以下代码为 .html 文件并在浏览器中打开。
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>正在跳转至 Google...</title>
<!-- 方法1:HTML Meta Refresh (如果JS被禁用,1秒后自动跳转) -->
<meta http-equiv="refresh" content="1;url=https://www.google.com">
<style>
/* 基础重置与布局 */
body, html {
height: 100%;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: #f8f9fa;
color: #202124;
display: flex;
justify-content: center;
align-items: center;
}
/* 卡片容器样式 */
.redirect-card {
background: white;
padding: 2rem 3rem;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
text-align: center;
max-width: 400px;
width: 90%;
}
/* 加载动画圆圈 */
.spinner {
border: 4px solid #f3f3f3;
border-top: 4px solid #4285f4; /* Google Blue */
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
margin: 0 auto 1.5rem auto;
}
/* 文本排版 */
h1 {
font-size: 1.25rem;
margin-bottom: 0.5rem;
font-weight: 500;
}
p {
font-size: 0.95rem;
color: #5f6368;
margin-bottom: 1.5rem;
line-height: 1.5;
}
/* 手动链接样式 */
.manual-link {
display: inline-block;
color: #1a73e8; /* Google Link Blue */
text-decoration: none;
font-weight: 500;
padding: 0.5rem 1rem;
border: 1px solid #dadce0;
border-radius: 4px;
transition: background-color 0.2s;
}
.manual-link:hover {
background-color: #f1f3f4;
text-decoration: underline;
}
/* 动画定义 */
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<main class="redirect-card">
<!-- 视觉反馈:加载动画 -->
<div class="spinner"></div>
<!-- 提示信息 -->
<h1>正在为您跳转</h1>
<p>我们正在将您引导至 Google。<br>如果页面没有自动刷新,请点击下方的按钮。</p>
<!-- 手动跳转链接 -->
<a href="https://www.google.com" class="manual-link">立即前往 Google</a>
</main>
<script>
// 方法2:JavaScript 跳转 (推荐)
// 使用 replace() 而不是 href,这样用户点击“后退”时不会死循环回到这个跳转页
(function() {
// 目标地址
var targetUrl = "https://www.google.com";
// 执行跳转
window.location.replace(targetUrl);
// 控制台日志(用于调试)
console.log("Redirecting to: " + targetUrl);
})();
</script>
</body>
</html>
Acknowledgments
QuantumNous would like to thank TechnologyStar for the early notification of this potential vulnerability via AI-assisted tools, and small-lovely-cat for providing additional context and an initial patch. The final fix was developed and verified by the maintainers to ensure full compatibility with the project's architecture.
{
"affected": [
{
"package": {
"ecosystem": "Go",
"name": "github.com/QuantumNous/new-api"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.10.8-alpha.9"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-25802"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2026-02-23T22:10:25Z",
"nvd_published_at": "2026-02-24T01:16:14Z",
"severity": "HIGH"
},
"details": "### Summary\n\nA potential unsafe operation occurs in component `MarkdownRenderer.jsx`, allowing for Cross-Site Scripting(XSS) when the model outputs items containing `\u003cscript\u003e` tag.\n\n### Details\n\nLine 212-231 of `MarkdownRenderer.jsx` is unsafe, it use dangerouslySetInnerHTML to preview html the model generates. This can trigger malcious scripts.\n\n### PoC\n\nA simple way to exploit that is to ask the model in the playground, with prompt: \"\u8bf7\u5e2e\u6211\u5199\u4e2a\u811a\u672c\uff0c\u8df3\u8f6c\u5230google\", and then the browser will navigate to the google.com without user interference.\n\n### Impact\n\nPotential malcious activity to the user using playground, if the model api is altered to output unintended codes.\n\nAlso, users may not be easily rid the exploit, since the record of the chat containing XSS script is stored, once opening the page later, the script will be re-triggered.\n\n### Potential Workaround\n\nThe preview may be placed in an iframe sandbox, dangerous html strings should be purified before rendering.\n\n---\n\nThe reply generated for test is as below:\n\n\u8fd9\u662f\u4e00\u4e2a\u4e3a\u60a8\u7f16\u5199\u7684\u5355\u9875 HTML \u6587\u4ef6\u3002\u5b83\u4f7f\u7528\u4e86\u4e24\u79cd\u65b9\u5f0f\u6765\u5b9e\u73b0\u8df3\u8f6c\uff0c\u4ee5\u786e\u4fdd\u5728\u4efb\u4f55\u60c5\u51b5\u4e0b\u90fd\u80fd\u5de5\u4f5c\uff1a\n\n1. **JavaScript (`window.location.replace`)**\uff1a\u8fd9\u662f\u6700\u5e38\u7528\u4e14\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u5b83\u4f1a\u7acb\u5373\u8df3\u8f6c\uff0c\u5e76\u4e14\u4e0d\u4f1a\u4fdd\u7559\u5f53\u524d\u9875\u9762\u5728\u6d4f\u89c8\u5668\u5386\u53f2\u8bb0\u5f55\u4e2d\uff08\u8fd9\u6837\u7528\u6237\u6309\u201c\u540e\u9000\u201d\u952e\u4e0d\u4f1a\u56de\u5230\u8fd9\u4e2a\u8df3\u8f6c\u9875\uff09\u3002\n2. **HTML Meta Refresh**\uff1a\u4f5c\u4e3a\u540e\u5907\u65b9\u6848\u3002\u5982\u679c\u7528\u6237\u7684\u6d4f\u89c8\u5668\u7981\u7528\u4e86 JavaScript\uff0c\u8fd9\u4e2a\u6807\u7b7e\u4f1a\u5728 1 \u79d2\u540e\u5c06\u7528\u6237\u5e26\u5f80 Google\u3002\n3. **\u624b\u52a8\u94fe\u63a5**\uff1a\u9875\u9762\u4e2d\u663e\u793a\u4e86\u4e00\u4e2a\u5907\u7528\u94fe\u63a5\uff0c\u4ee5\u9632\u81ea\u52a8\u8df3\u8f6c\u88ab\u62e6\u622a\u6216\u5931\u6548\u3002\n\n\u60a8\u53ef\u4ee5\u76f4\u63a5\u4fdd\u5b58\u4ee5\u4e0b\u4ee3\u7801\u4e3a `.html` \u6587\u4ef6\u5e76\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u3002\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"zh-CN\"\u003e\n\u003chead\u003e\n \u003cmeta charset=\"UTF-8\"\u003e\n \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n \u003ctitle\u003e\u6b63\u5728\u8df3\u8f6c\u81f3 Google...\u003c/title\u003e\n \n \u003c!-- \u65b9\u6cd51\uff1aHTML Meta Refresh (\u5982\u679cJS\u88ab\u7981\u7528\uff0c1\u79d2\u540e\u81ea\u52a8\u8df3\u8f6c) --\u003e\n \u003cmeta http-equiv=\"refresh\" content=\"1;url=https://www.google.com\"\u003e\n\n \u003cstyle\u003e\n /* \u57fa\u7840\u91cd\u7f6e\u4e0e\u5e03\u5c40 */\n body, html {\n height: 100%;\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n background-color: #f8f9fa;\n color: #202124;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n /* \u5361\u7247\u5bb9\u5668\u6837\u5f0f */\n .redirect-card {\n background: white;\n padding: 2rem 3rem;\n border-radius: 12px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n text-align: center;\n max-width: 400px;\n width: 90%;\n }\n\n /* \u52a0\u8f7d\u52a8\u753b\u5706\u5708 */\n .spinner {\n border: 4px solid #f3f3f3;\n border-top: 4px solid #4285f4; /* Google Blue */\n border-radius: 50%;\n width: 40px;\n height: 40px;\n animation: spin 1s linear infinite;\n margin: 0 auto 1.5rem auto;\n }\n\n /* \u6587\u672c\u6392\u7248 */\n h1 {\n font-size: 1.25rem;\n margin-bottom: 0.5rem;\n font-weight: 500;\n }\n\n p {\n font-size: 0.95rem;\n color: #5f6368;\n margin-bottom: 1.5rem;\n line-height: 1.5;\n }\n\n /* \u624b\u52a8\u94fe\u63a5\u6837\u5f0f */\n .manual-link {\n display: inline-block;\n color: #1a73e8; /* Google Link Blue */\n text-decoration: none;\n font-weight: 500;\n padding: 0.5rem 1rem;\n border: 1px solid #dadce0;\n border-radius: 4px;\n transition: background-color 0.2s;\n }\n\n .manual-link:hover {\n background-color: #f1f3f4;\n text-decoration: underline;\n }\n\n /* \u52a8\u753b\u5b9a\u4e49 */\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n \u003c/style\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\n \u003cmain class=\"redirect-card\"\u003e\n \u003c!-- \u89c6\u89c9\u53cd\u9988\uff1a\u52a0\u8f7d\u52a8\u753b --\u003e\n \u003cdiv class=\"spinner\"\u003e\u003c/div\u003e\n \n \u003c!-- \u63d0\u793a\u4fe1\u606f --\u003e\n \u003ch1\u003e\u6b63\u5728\u4e3a\u60a8\u8df3\u8f6c\u003c/h1\u003e\n \u003cp\u003e\u6211\u4eec\u6b63\u5728\u5c06\u60a8\u5f15\u5bfc\u81f3 Google\u3002\u003cbr\u003e\u5982\u679c\u9875\u9762\u6ca1\u6709\u81ea\u52a8\u5237\u65b0\uff0c\u8bf7\u70b9\u51fb\u4e0b\u65b9\u7684\u6309\u94ae\u3002\u003c/p\u003e\n \n \u003c!-- \u624b\u52a8\u8df3\u8f6c\u94fe\u63a5 --\u003e\n \u003ca href=\"https://www.google.com\" class=\"manual-link\"\u003e\u7acb\u5373\u524d\u5f80 Google\u003c/a\u003e\n \u003c/main\u003e\n\n \u003cscript\u003e\n // \u65b9\u6cd52\uff1aJavaScript \u8df3\u8f6c (\u63a8\u8350)\n // \u4f7f\u7528 replace() \u800c\u4e0d\u662f href\uff0c\u8fd9\u6837\u7528\u6237\u70b9\u51fb\u201c\u540e\u9000\u201d\u65f6\u4e0d\u4f1a\u6b7b\u5faa\u73af\u56de\u5230\u8fd9\u4e2a\u8df3\u8f6c\u9875\n (function() {\n // \u76ee\u6807\u5730\u5740\n var targetUrl = \"https://www.google.com\";\n\n // \u6267\u884c\u8df3\u8f6c\n window.location.replace(targetUrl);\n \n // \u63a7\u5236\u53f0\u65e5\u5fd7\uff08\u7528\u4e8e\u8c03\u8bd5\uff09\n console.log(\"Redirecting to: \" + targetUrl);\n })();\n \u003c/script\u003e\n\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n### Acknowledgments\n\nQuantumNous would like to thank **TechnologyStar** for the early notification of this potential vulnerability via AI-assisted tools, and **small-lovely-cat** for providing additional context and an initial patch. The final fix was developed and verified by the maintainers to ensure full compatibility with the project\u0027s architecture.",
"id": "GHSA-299v-8pq9-5gjq",
"modified": "2026-02-27T21:41:05Z",
"published": "2026-02-23T22:10:25Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/QuantumNous/new-api/security/advisories/GHSA-299v-8pq9-5gjq"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-25802"
},
{
"type": "WEB",
"url": "https://github.com/QuantumNous/new-api/commit/ab5456eb1049aa8a0f3e51f359907ec7fff38b4b"
},
{
"type": "PACKAGE",
"url": "https://github.com/QuantumNous/new-api"
},
{
"type": "WEB",
"url": "https://pkg.go.dev/vuln/GO-2026-4532"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:L",
"type": "CVSS_V3"
}
],
"summary": "New API has Potential XSS in its MarkdownRenderer component"
}
GHSA-29C4-J685-RVR3
Vulnerability from github – Published: 2022-05-02 06:14 – Updated: 2022-05-02 06:14Cross-site scripting (XSS) vulnerability in the login/prompt component in Subex Nikira Fraud Management System allows remote attackers to inject arbitrary web script or HTML via the message parameter.
{
"affected": [],
"aliases": [
"CVE-2010-0706"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2010-02-25T18:30:00Z",
"severity": "MODERATE"
},
"details": "Cross-site scripting (XSS) vulnerability in the login/prompt component in Subex Nikira Fraud Management System allows remote attackers to inject arbitrary web script or HTML via the message parameter.",
"id": "GHSA-29c4-j685-rvr3",
"modified": "2022-05-02T06:14:48Z",
"published": "2022-05-02T06:14:48Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2010-0706"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/56393"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/38564"
},
{
"type": "WEB",
"url": "http://www.packetstormsecurity.org/1002-exploits/nikara-xss.txt"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/38311"
}
],
"schema_version": "1.4.0",
"severity": []
}
Mitigation MIT-4
Strategy: Libraries or Frameworks
- Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482].
- Examples of libraries and frameworks that make it easier to generate properly encoded output include Microsoft's Anti-XSS library, the OWASP ESAPI Encoding module, and Apache Wicket.
Mitigation
- Understand the context in which your data will be used and the encoding that will be expected. This is especially important when transmitting data between different components, or when generating outputs that can contain multiple encodings at the same time, such as web pages or multi-part mail messages. Study all expected communication protocols and data representations to determine the required encoding strategies.
- For any data that will be output to another web page, especially any data that was received from external inputs, use the appropriate encoding on all non-alphanumeric characters.
- Parts of the same output document may require different encodings, which will vary depending on whether the output is in the:
- etc. Note that HTML Entity Encoding is only appropriate for the HTML body.
- Consult the XSS Prevention Cheat Sheet [REF-724] for more details on the types of encoding and escaping that are needed.
- HTML body
- Element attributes (such as src="XYZ")
- URIs
- JavaScript sections
- Cascading Style Sheets and style property
Mitigation MIT-6
Strategy: Attack Surface Reduction
Understand all the potential areas where untrusted inputs can enter your software: parameters or arguments, cookies, anything read from the network, environment variables, reverse DNS lookups, query results, request headers, URL components, e-mail, files, filenames, databases, and any external systems that provide data to the application. Remember that such inputs may be obtained indirectly through API calls.
Mitigation MIT-15
For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
Mitigation MIT-27
Strategy: Parameterization
If available, use structured mechanisms that automatically enforce the separation between data and code. These mechanisms may be able to provide the relevant quoting, encoding, and validation automatically, instead of relying on the developer to provide this capability at every point where output is generated.
Mitigation MIT-30.1
Strategy: Output Encoding
- Use and specify an output encoding that can be handled by the downstream component that is reading the output. Common encodings include ISO-8859-1, UTF-7, and UTF-8. When an encoding is not specified, a downstream component may choose a different encoding, either by assuming a default encoding or automatically inferring which encoding is being used, which can be erroneous. When the encodings are inconsistent, the downstream component might treat some character or byte sequences as special, even if they are not special in the original encoding. Attackers might then be able to exploit this discrepancy and conduct injection attacks; they even might be able to bypass protection mechanisms that assume the original encoding is also being used by the downstream component.
- The problem of inconsistent output encodings often arises in web pages. If an encoding is not specified in an HTTP header, web browsers often guess about which encoding is being used. This can open up the browser to subtle XSS attacks.
Mitigation MIT-43
With Struts, write all data from form beans with the bean's filter attribute set to true.
Mitigation MIT-31
Strategy: Attack Surface Reduction
To help mitigate XSS attacks against the user's session cookie, set the session cookie to be HttpOnly. In browsers that support the HttpOnly feature (such as more recent versions of Internet Explorer and Firefox), this attribute can prevent the user's session cookie from being accessible to malicious client-side scripts that use document.cookie. This is not a complete solution, since HttpOnly is not supported by all browsers. More importantly, XmlHttpRequest and other powerful browser technologies provide read access to HTTP headers, including the Set-Cookie header in which the HttpOnly flag is set.
Mitigation MIT-5
Strategy: Input Validation
- Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
- When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."
- Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
- When dynamically constructing web pages, use stringent allowlists that limit the character set based on the expected value of the parameter in the request. All input should be validated and cleansed, not just parameters that the user is supposed to specify, but all data in the request, including hidden fields, cookies, headers, the URL itself, and so forth. A common mistake that leads to continuing XSS vulnerabilities is to validate only fields that are expected to be redisplayed by the site. It is common to see data from the request that is reflected by the application server or the application that the development team did not anticipate. Also, a field that is not currently reflected may be used by a future developer. Therefore, validating ALL parts of the HTTP request is recommended.
- Note that proper output encoding, escaping, and quoting is the most effective solution for preventing XSS, although input validation may provide some defense-in-depth. This is because it effectively limits what will appear in output. Input validation will not always prevent XSS, especially if you are required to support free-form text fields that could contain arbitrary characters. For example, in a chat application, the heart emoticon ("<3") would likely pass the validation step, since it is commonly used. However, it cannot be directly inserted into the web page because it contains the "<" character, which would need to be escaped or otherwise handled. In this case, stripping the "<" might reduce the risk of XSS, but it would produce incorrect behavior because the emoticon would not be recorded. This might seem to be a minor inconvenience, but it would be more important in a mathematical forum that wants to represent inequalities.
- Even if you make a mistake in your validation (such as forgetting one out of 100 input fields), appropriate encoding is still likely to protect you from injection-based attacks. As long as it is not done in isolation, input validation is still a useful technique, since it may significantly reduce your attack surface, allow you to detect some attacks, and provide other security benefits that proper encoding does not address.
- Ensure that you perform input validation at well-defined interfaces within the application. This will help protect the application even if a component is reused or moved elsewhere.
Mitigation MIT-21
Strategy: Enforcement by Conversion
When the set of acceptable objects, such as filenames or URLs, is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames or URLs, and reject all other inputs.
Mitigation MIT-29
Strategy: Firewall
Use an application firewall that can detect attacks against this weakness. It can be beneficial in cases in which the code cannot be fixed (because it is controlled by a third party), as an emergency prevention measure while more comprehensive software assurance measures are applied, or to provide defense in depth [REF-1481].
Mitigation MIT-16
Strategy: Environment Hardening
When using PHP, configure the application so that it does not use register_globals. During implementation, develop the application so that it does not rely on this feature, but be wary of implementing a register_globals emulation that is subject to weaknesses such as CWE-95, CWE-621, and similar issues.
CAPEC-209: XSS Using MIME Type Mismatch
An adversary creates a file with scripting content but where the specified MIME type of the file is such that scripting is not expected. The adversary tricks the victim into accessing a URL that responds with the script file. Some browsers will detect that the specified MIME type of the file does not match the actual type of its content and will automatically switch to using an interpreter for the real content type. If the browser does not invoke script filters before doing this, the adversary's script may run on the target unsanitized, possibly revealing the victim's cookies or executing arbitrary script in their browser.
CAPEC-588: DOM-Based XSS
This type of attack is a form of Cross-Site Scripting (XSS) where a malicious script is inserted into the client-side HTML being parsed by a web browser. Content served by a vulnerable web application includes script code used to manipulate the Document Object Model (DOM). This script code either does not properly validate input, or does not perform proper output encoding, thus creating an opportunity for an adversary to inject a malicious script launch a XSS attack. A key distinction between other XSS attacks and DOM-based attacks is that in other XSS attacks, the malicious script runs when the vulnerable web page is initially loaded, while a DOM-based attack executes sometime after the page loads. Another distinction of DOM-based attacks is that in some cases, the malicious script is never sent to the vulnerable web server at all. An attack like this is guaranteed to bypass any server-side filtering attempts to protect users.
CAPEC-591: Reflected XSS
This type of attack is a form of Cross-Site Scripting (XSS) where a malicious script is "reflected" off a vulnerable web application and then executed by a victim's browser. The process starts with an adversary delivering a malicious script to a victim and convincing the victim to send the script to the vulnerable web application.
CAPEC-592: Stored XSS
An adversary utilizes a form of Cross-site Scripting (XSS) where a malicious script is persistently "stored" within the data storage of a vulnerable web application as valid input.
CAPEC-63: Cross-Site Scripting (XSS)
An adversary embeds malicious scripts in content that will be served to web browsers. The goal of the attack is for the target software, the client-side browser, to execute the script with the users' privilege level. An attack of this type exploits a programs' vulnerabilities that are brought on by allowing remote hosts to execute code and scripts. Web browsers, for example, have some simple security controls in place, but if a remote attacker is allowed to execute scripts (through injecting them in to user-generated content like bulletin boards) then these controls may be bypassed. Further, these attacks are very difficult for an end user to detect.
CAPEC-85: AJAX Footprinting
This attack utilizes the frequent client-server roundtrips in Ajax conversation to scan a system. While Ajax does not open up new vulnerabilities per se, it does optimize them from an attacker point of view. A common first step for an attacker is to footprint the target environment to understand what attacks will work. Since footprinting relies on enumeration, the conversational pattern of rapid, multiple requests and responses that are typical in Ajax applications enable an attacker to look for many vulnerabilities, well-known ports, network locations and so on. The knowledge gained through Ajax fingerprinting can be used to support other attacks, such as XSS.