Skip to content

fix: sanitize SVG#41234

Merged
DeepDiver1975 merged 1 commit into
masterfrom
fix/svg-href
Apr 16, 2024
Merged

fix: sanitize SVG#41234
DeepDiver1975 merged 1 commit into
masterfrom
fix/svg-href

Conversation

@DeepDiver1975

@DeepDiver1975 DeepDiver1975 commented Apr 15, 2024

Copy link
Copy Markdown
Member

Description

SVG xlink:href will now completely be blocked as well as other image tag to harden SVG support.

Motivation and Context

Harden SVG support

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@update-docs

update-docs Bot commented Apr 15, 2024

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@sonarqubecloud

Copy link
Copy Markdown

Comment thread composer.json
"phpseclib/phpseclib": "^3.0",
"pimple/pimple": "^3.5",
"punic/punic": "^3.8",
"rhukster/dom-sanitizer": "dev-main",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it possible to pin this specifically to commit: rhukster/dom-sanitizer@757e4d6

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The explicit commit is pinned in compose.lock

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Won't this automatically pull HEAD on every composer install on a fresh system?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

no -composer install operate on the lock file. lock file is updated via composer update

dont get confused with npm .....

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✔️

Comment thread composer.json
"phpseclib/phpseclib": "^3.0",
"pimple/pimple": "^3.5",
"punic/punic": "^3.8",
"rhukster/dom-sanitizer": "dev-main",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✔️

@DeepDiver1975 DeepDiver1975 merged commit 2a51c4d into master Apr 16, 2024
@delete-merged-branch delete-merged-branch Bot deleted the fix/svg-href branch April 16, 2024 10:15
@DeepDiver1975

Copy link
Copy Markdown
Member Author

damit - changelog is missing .... will come up with another pr ...

DeepDiver1975 added a commit that referenced this pull request Apr 16, 2024
phil-davis added a commit that referenced this pull request Apr 16, 2024
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.

2 participants