Skip to content

fix(sms): sanitize incoming SMS display values - #30

Open
xkg38 wants to merge 1 commit into
jeedom:betafrom
xkg38:fix/sanitize-incoming-sms-values
Open

fix(sms): sanitize incoming SMS display values#30
xkg38 wants to merge 1 commit into
jeedom:betafrom
xkg38:fix/sanitize-incoming-sms-values

Conversation

@xkg38

@xkg38 xkg38 commented Jul 20, 2026

Copy link
Copy Markdown

Description

Incoming SMS bodies and sender values are remotely controlled and are stored in the Message and Sender commands. These string values may later be rendered by Jeedom widgets using innerHTML, allowing unescaped markup to be interpreted in the session of the user displaying the widget.

This change applies secureXSS() before logging or storing these display values. The original SMS body remains unchanged for askResponse() and interaction matching, so existing SMS interaction behavior is preserved.

Suggested changelog entry

Sanitize incoming SMS message and sender values before storing and displaying them.

Related issues/external references

No related public issue.

Types of changes

  • Bug fix (non-breaking change which fixes)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
    • This change is only breaking for integrators, not for external standards or end-users.
  • Documentation improvement

PR checklist

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.

1 participant