Skip to content

Escape the comment-page value in the single-post breadcrumb (reflected XSS) - #148

Merged
deepench merged 2 commits into
developfrom
fix/breadcrumb-cpage-xss
Oct 14, 2026
Merged

deepench merged 2 commits into
developfrom
fix/breadcrumb-cpage-xss

Conversation

@deepench

@deepench deepench commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The npm package metadata still reports older versions than the new 1.6.14 theme release.

1 open finding
What changed in this PR

This PR prevents reflected XSS in the single-post breadcrumb by converting the cpage query value to an integer before displaying it.

Changes:

  • Cast the comment-page value with absint() before rendering the breadcrumb.
  • Add a 1.6.14 changelog entry and update the theme version headers.
File Description
style.css Updates the theme version header.
sass/​style.scss Updates the Sass source version header.
readme.txt Documents the security fix.
inc/​estore.php Constrains the displayed comment-page value to an integer.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread style.css
Author URI: https://www.themegrill.com
Description: eStore is a clean, beautiful and fully customizable responsive WooCommerce WordPress theme. This theme packs many premium features and several custom widgets which helps making your online store professional and well organized. Theme is fully compatible with WooCommerce and YITH WooCommerce Wishlist plugins. As an online store owner, attracting customers and selling products will be lot easier with this theme. Check the demo here: https://themegrilldemos.com/estore/ and get free support here: https://wordpress.org/support/theme/estore/
Version: 1.6.13
Version: 1.6.14

@subin-shk subin-shk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏼

@deepench
deepench merged commit daf4a28 into develop Oct 14, 2026
3 checks passed
@deepench
deepench deleted the fix/breadcrumb-cpage-xss branch October 14, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants