CVE-2026-1908
Received Received - Intake
Stored XSS in Hubspot Forms WordPress Plugin Allows Script Injection

Publication date: 2026-03-21

Last updated on: 2026-03-21

Assigner: Wordfence

Description
The Integration with Hubspot Forms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'hubspotform' shortcode in all versions up to, and including, 1.2.2 due to insufficient input sanitization and output escaping on user supplied attributes. 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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-21
Last Modified
2026-03-21
Generated
2026-05-06
AI Q&A
2026-03-21
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
wpforms integration_with_hubspot_forms to 1.2.2 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 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.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

The Integration with Hubspot Forms plugin for WordPress is vulnerable to Stored Cross-Site Scripting (XSS) via the 'hubspotform' shortcode in all versions up to and including 1.2.2.

This vulnerability arises because the plugin does not properly sanitize or escape user-supplied attributes in the shortcode, allowing authenticated attackers with Contributor-level access or higher to inject arbitrary web scripts.

These injected scripts are stored and executed whenever any user accesses the affected page, potentially compromising site visitors.


How can this vulnerability impact me? :

This vulnerability allows attackers with Contributor-level access or above to inject malicious scripts into pages via the 'hubspotform' shortcode.

When other users visit these pages, the injected scripts execute in their browsers, which can lead to theft of sensitive information, session hijacking, or other malicious actions.

Because the vulnerability is a Stored Cross-Site Scripting flaw, the malicious code persists on the site and affects all visitors to the compromised pages.

The CVSS v3.1 base score of 6.4 indicates a medium severity with network attack vector, low attack complexity, requiring privileges, no user interaction, and impacts on confidentiality and integrity.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

The vulnerability is a Stored Cross-Site Scripting (XSS) in the Integration with Hubspot Forms WordPress plugin via the 'hubspotform' shortcode. Detection involves identifying if the plugin version is 1.2.2 or earlier and if the shortcode is used in posts or pages.

To detect exploitation attempts or presence of malicious scripts injected via the shortcode, you can search your WordPress database content for suspicious script tags or unusual JavaScript within posts or pages that use the [hubspotform] shortcode.

  • Use WP-CLI to search post content for suspicious script injections: wp db query "SELECT ID, post_title FROM wp_posts WHERE post_content LIKE '%<script>%' OR post_content LIKE '%hbspt.forms.create%'"
  • Check for the plugin version installed: wp plugin get integration-with-hubspot-forms --field=version
  • Monitor web server logs for unusual requests containing script payloads targeting pages with the shortcode.

What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include updating the Integration with Hubspot Forms plugin to a version later than 1.2.2 where the vulnerability is fixed.

If an update is not immediately available, restrict Contributor-level and above users from adding or editing content with the [hubspotform] shortcode to prevent exploitation.

Review and sanitize existing content that uses the shortcode to remove any injected malicious scripts.

  • Update the plugin to the latest version.
  • Limit user permissions to trusted users only.
  • Audit and clean posts/pages containing the shortcode for injected scripts.
  • Consider disabling the plugin temporarily if immediate patching is not possible.

Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart