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

misc: Bandit scan issue for lxml #8716

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dongpingx
Copy link
Contributor

This patch is to fix Bandit scan issue b313-b320 which is vulnerable to XML attacks when parsing untrusted XML data.

I replace lxml.etree with the equivalent defusedxml package.

I confirm it works after making a Bandit scan, building the configurator and compiling the acrn.

Tracked-On: ACRN-10179

@yuhuanX
Copy link

yuhuanX commented Aug 29, 2024

@dongpingx ,this is opensource acrn, valid Tracked-On is github issue number.

@yuhuanX
Copy link

yuhuanX commented Aug 29, 2024

start to build

@yuhuanX
Copy link

yuhuanX commented Aug 29, 2024

start to run premerge test

This patch is to fix Bandit scan issue b313-b320 which is vulnerable to
XML attacks when parsing untrusted XML data.

I replace lxml.etree with the equivalent defusedxml package.

I confirm it works after making a Bandit scan, building the configurator
and compiling the acrn.

Signed-off-by: dongpingx <dongpingx.wu@intel.com>
Tracked-On: projectacrn#8717
@yuhuanX
Copy link

yuhuanX commented Sep 11, 2024

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants