open-metadata / OpenMetadata

OpenMetadata is a unified metadata platform for data discovery, data observability, and data governance powered by a central metadata repository, in-depth column level lineage, and seamless team collaboration.
https://open-metadata.org
Apache License 2.0
5.59k stars 1.05k forks source link

Minor: Add SanitizedInput Component for Input Sanitization #18674

Closed Sachin-chaurasiya closed 2 days ago

Sachin-chaurasiya commented 3 days ago

Describe your changes:

Fixes https://github.com/open-metadata/OpenMetadata/security/advisories/GHSA-59gm-6h39-397f

This PR introduces SanitizedInput to handle content sanitization, preventing XSS vulnerabilities.

#

Type of change:

#

Checklist:

github-actions[bot] commented 3 days ago

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 63%
63.57% (39788/62588) 40.17% (15782/39288) 42.33% (4723/11158)
sonarcloud[bot] commented 3 days ago

Quality Gate Passed Quality Gate passed for 'open-metadata-ui'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud