SD Breadcrumb provides advanced breadcrumb management for Drupal 11.3+ sites with customizable patterns, icon support, and flexible configuration at both content-type and node levels. Unlike existing breadcrumb modules (Easy Breadcrumb, Menu Breadcrumb), SD Breadcrumb offers a visual builder, per-node overrides, icon support with media library integration, and dual-mode operation (system default or fully custom patterns).
Why This Module is Different:
Easy Breadcrumb: Simpler but lacks visual builder, per-node customization, and icon support
Menu Breadcrumb: Strictly menu-based; SD Breadcrumb offers path-based AND custom patterns
Custom Breadcrumbs: Older, not maintained for recent Drupal versions
SD Breadcrumb fills the gap by providing enterprise-level breadcrumb management with an intuitive UI that requires no coding.
Comments
Comment #2
sushant-d commentedModule URL : https://www.drupal.org/project/sd_breadcrumb
Comment #3
vishal.kadamComment #4
vishal.kadamComment #5
mxr10 commentedI reviewed the SD Breadcrumb Pro module code for security issues.
## Files Reviewed
- sd_breadcrumb.module
- src/Breadcrumb/SdBreadcrumbBuilder.php
- src/Controller/PreviewController.php
- src/Form/SettingsForm.php
- src/Form/BreadcrumbPatternForm.php
- src/Service/PatternManager.php
- src/Service/BreadcrumbGenerator.php
- js/breadcrumb-builder.js
## Security Analysis
✅ **XSS Prevention**: The module properly validates user input using `strip_tags()` in both `sd_breadcrumb_node_form_validate()` and `BreadcrumbPatternForm::validateForm()` to prevent HTML injection in breadcrumb labels.
✅ **Form API**: All forms use Drupal's Form API correctly with proper validation handlers.
✅ **Database Queries**: Uses Drupal's database abstraction layer with proper placeholders in `BreadcrumbGenerator.php`.
✅ **Entity Access**: Uses `entity_autocomplete` form elements which respect entity access permissions.
✅ **Configuration**: Uses Drupal's Config API for storing patterns and settings.
✅ **Translations**: All user-facing strings use `t()` or `$this->t()`.
## Minor Suggestions (not security issues)
- Remove .DS_Store files from repository
- Consider reducing debug logging in production
- Remove commented code in .module file
## Conclusion
The code follows Drupal security best practices. No security vulnerabilities found.
Setting to RTBC.
Comment #6
rushikesh raval commentedThank you for applying!
Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.
The important notes are the following.
Keep in mind that once the project is opted into security advisory coverage, only Security Team members may change coverage.
To the reviewers
Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.
The important notes are the following.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.
Comment #7
vishal.kadamI am changing priority as per Issue priorities.
Comment #8
batigolixThe module still needs quite a bit of work.
Here are some things to start with.
(*) No GitLab CI configuration — The
.gitlab-ci.ymlfile is entirely missing. GitLab CI is the first step toward quality for contributed modules and is expected for the security coverage application. See GitLab CI Templates.(*) XSS in PreviewController —
PreviewController.php:103concatenates unsanitized$labeldirectly into#markup.The$labelvalue comes from stored pattern segments. While admin-entered, stored XSS is still a risk. UseHtml::escape()or render arrays with#plain_textinstead. See writing secure code for Drupal.(*) Debug logging left in production code —
SdBreadcrumbBuilder.php:177logsprint_r($pattern, TRUE)and line 227 logsprint_r($segments, TRUE)tothe logger on every node page view. The
.modulefile (lines 62, 73) also logs per-segment data on every preprocess. This causes severe log noise, performance degradation, and potential information disclosure. Remove all debug logging before release.