-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Describe the bug
When an image contains special characters like image^3.webp, we are stripping the character, and the URL returned is image3.webp instead of image^3.webp. This breaks the image, causing a 404 error.
This is coming from the recent change applied here.
Security: Fix an authenticated Stored Cross-Site Scripting (XSS) vulnerability reported by Pathstack.
To Reproduce
Steps to reproduce the behavior:
- Installed Lazy Load - Optimize Images plugin (version 2.4.0)
- Add an image with the file name including special characters, for example,
image^3.webp - Enable LazyLoad for images option.
- View the page source and see that the special character is now removed.
Expected behavior
We should safely encode special characters instead of removing them, to prevent this kind of issue while still keeping URLs secure.
Screenshots
Metadata
Metadata
Assignees
Labels
No labels