github-advanced-security[bot] commented on code in PR #53377:
URL: https://github.com/apache/airflow/pull/53377#discussion_r2208576921
##########
airflow-core/src/airflow/ui/src/pages/Iframe.tsx:
##########
@@ -68,24 +49,20 @@
}
}
+ // Sanitize the URL for safe use in iframe
+ const sanitizedSrc = sanitizeIframeUrl(src);
+
return (
- <Box
- flexGrow={1}
- height="100%"
- m={-2} // Compensate for parent padding
- minHeight={0}
- >
- <iframe
- sandbox={sandbox}
- src={src}
- style={{
- border: "none",
- display: "block",
- height: "100%",
- width: "100%",
- }}
- title={iframeView.name}
- />
- </Box>
+ <iframe
+ sandbox={sandbox}
+ src={sanitizedSrc}
Review Comment:
## Client-side cross-site scripting
Cross-site scripting vulnerability due to [user-provided value](1).
[Show more
details](https://github.com/apache/airflow/security/code-scanning/503)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]