Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow SVG transfer function attributes #987

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

Gigabyte5671
Copy link
Contributor

@Gigabyte5671 Gigabyte5671 commented Aug 20, 2024

Summary

This PR adds the following SVG transfer function (<feFunc*>) attributes to the SVG allow list:

  • amplitude
  • exponent
  • intercept
  • slope
  • tablevalues

Afaik, these are all of the attributes that are available on SVG component transfer functions (offset is already on the allow list).

These attributes are used to control how colours are processed inside an <feComponentTransfer> element. All of these attributes only accept numeric values, so I don't believe they can be used to trigger scripts or other malicious behaviours. Please let me know if I'm wrong there.

Thanks again!

Background & Context

This should fix #984.

References

@cure53 cure53 merged commit 403e2dd into cure53:main Aug 20, 2024
8 checks passed
@cure53
Copy link
Owner

cure53 commented Aug 20, 2024

That looks good, thank you very much :)

@Gigabyte5671 Gigabyte5671 deleted the svg-fefunc-attributes branch August 25, 2024 04:29
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.

Incorrect remove of feFunc* attr
2 participants