elementor/modules/site-navigation
Netanel Baba 2a624a7d52
Internal: Improve parameter handling in site navigation module [ED-19760] (#33871)
## PR Checklist
<!-- 
Please check if your PR fulfills the following requirements:
**Filling out the template is required.** Any pull request that does not
include enough information to be reviewed in a timely manner may be
closed at the maintainers' discretion.
 -->
- [ ] The commit message follows our guidelines:
https://github.com/elementor/elementor/blob/master/.github/CONTRIBUTING.md


## PR Type
What kind of change does this PR introduce?
<!-- Please check the one that applies to this PR using "x" with no
spaces eg: [x]. -->
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [ ] Documentation content changes
- [ ] Other... Please describe:

## Summary

This PR can be summarized in the following changelog entry:

*

## Description
An explanation of what is done in this PR

*

## Test instructions
This PR can be tested by following these steps:

*

## Quality assurance

- [ ] I have tested this code to the best of my abilities
- [ ] I have added unittests to verify the code works as intended
- [ ] Docs have been added / updated (for bug fixes / features)

Fixes #

<!--start_gitstream_placeholder-->
###  PR Description
Purpose: Fix format string injection vulnerabilities in sprintf calls by
sanitizing user-controlled parameters before string formatting across
multiple modules.

Main changes:
- Escaped percent signs in user input before sprintf to prevent format
string injection attacks
- Sanitized post_type parameters with esc_html in site navigation error
messages to prevent XSS
- Applied absint sanitization to array indices in variables module
validation error messages

_Generated by LinearB AI and added by gitStream._
<sub>AI-generated content may contain inaccuracies. Please verify before
using.
💡 **Tip:** You can customize your AI Description using **Guidelines**
[Learn
how](https://docs.gitstream.cm/automation-actions/#describe-changes)</sub>
<!--end_gitstream_placeholder-->
2025-12-17 12:22:40 +00:00
..
data Internal: Improve parameter handling in site navigation module [ED-19760] (#33871) 2025-12-17 12:22:40 +00:00
rest-fields Internal: Add REST to support pages panel UI for permissions [ED-13216] (#24686) 2024-01-07 15:50:39 +02:00
module.php Tweak: Merge "Editor Top Bar" feature to version [ED-15945] (#29051) 2025-05-15 17:30:53 +03:00