Prevent Html injection in <a> Tags

Posted by: senthamizh.selvi on 25 March 2025, 6:19 am EST

  • Posted 25 March 2025, 6:19 am EST

    In Wijmo grid, We are using CellMaker.makeLink for the hyperlink and we are getting penetration testing issue on this hyperlink.

    We also tried Dom sanitizer, but dont know exactly how to sanitize the url using this DOM sanitizer method.

    Could you please provide us any other way to prevent the HTML Injection on the href attribute.

  • Posted 26 March 2025, 8:27 am EST

    Hi Senthamizh,

    Could you please share some more information related to the issue, i.e., which tool you are using for penetration testing? Please share the specific steps, if any, that I can follow to replicate the issue on my end, as I am not very familiar with penetration testing. Please share a small sample in which we can replicate the issue, if possible. I am assuming that you are using the Angular framework. Please share the above details so that I can investigate the issue further and assist you accordingly.

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels