Summary
The BlockStrap Page Builder plugin for WordPress has a stored cross-site scripting flaw involving the comment parameter. An unauthenticated attacker who meets the comment-approval prerequisite may be able to store script content that runs in visitors' browsers when they view an affected page on a site using a block theme.
Affected context
The issue is described in BlockStrap Page Builder – Bootstrap Blocks versions up to and including 0.1.65. It involves insufficient sanitization of the comment parameter and inadequate escaping when the content is rendered.
Exploitation is subject to specific site conditions: the site must use a block theme, and WordPress's default comment policy must allow later comments from an author whose comment has previously been approved for the same name and email address.
Exploit preconditions
- Attack surface: The plugin's comment-handling and page-rendering paths.
- Required access: No authenticated account is inherently required, but the attacker must first have a comment approved for the relevant name and email address.
- Trigger point: A subsequent comment is processed and its content is rendered on an affected page.
- Deployment condition: The site must use a block theme, and comment-moderation behavior must allow the subsequent comment to bypass moderation.
- Why exploitation is possible: Insufficient input sanitization and output escaping can allow script-capable content to persist and execute in visitors' browsers.
Why this happens
The plugin does not adequately sanitize the comment parameter or escape its value for the context in which it is later displayed. This is a stored cross-site scripting weakness, mapped to CWE-79: Improper Neutralization of Input During Web Page Generation. Untrusted comment content is retained and rendered in a way that may cause a browser to interpret it as executable script.
Potential impact
- Malicious script may run in the browser of a visitor viewing an affected page.
- A visitor's session or actions on the site could be exposed to abuse, depending on browser and site controls.
- The affected page could be altered or used to mislead visitors.
- Site reputation and user trust could be harmed.
General mitigation guidance
Common defensive patterns for stored XSS include:
- Sanitize untrusted input according to the intended content format, while avoiding reliance on input filtering alone.
- Apply context-appropriate output encoding whenever user-controlled content is rendered.
- Use secure-by-default APIs and templating practices that escape output automatically.
- Reduce trust in comment identity and moderation signals; review approval and repeat-comment policies for unintended bypasses.
- Apply least privilege to site accounts and restrict who can approve comments or change relevant settings.
- Consider defense-in-depth browser policies, such as a carefully configured Content Security Policy.
How teams detect issues like this
- Use static analysis to identify user-controlled comment data reaching page output without context-appropriate escaping.
- Review code paths that accept, store, transform, or render the
commentparameter, including block-theme rendering paths. - Test moderation policies to confirm how repeat comments are handled for previously approved names and email addresses.
- Monitor rendered pages and comment records for unexpected script-capable content.
- Enforce secure output-escaping and input-validation rules in code review and CI policies; automated review tools can help flag risky data flows.

