so to solve this problem,
I will change [ “xmldom”: “~0.6.0”] to [ “@xmldom/xmldom”: “^0.9.9”].
I want to know,
After i do it, Are there any problems with the entire app?
Also, doses Amazon has any recommend specific xmldom versions which can solve the vulnerability problem.
Thank you for flagging the CVE-2022-37616 vulnerability in xmldom.
You’re correct that @xmldom/xmldom is the actively maintained successor to the deprecated xmldom package, and upgrading to it is the standard approach to resolve this vulnerability.
Before making the change, could you clarify:
Is xmldom a direct dependency in your app’s package.json, or does it come transitively through the Shaka Player dist build? On Vega, Shaka Player should be built using the Vega-specific dist generation steps. If xmldom is bundled inside that dist, the fix may need to be applied during the dist generation process rather than in your app’s dependencies directly.
Which version of Shaka Player are you using, and did you follow the Vega-specific setup to generate the dist folder?
This will help us provide accurate guidance on where and how to make the change safely.
In general:
Replacing xmldom ~0.6.0 with @xmldom/xmldom ^0.9.9 is the correct fix for CVE-2022-37616
Be aware that @xmldom/xmldom has stricter parsing behavior in newer versions - so thorough testing of DASH manifest parsing and playback is recommended after the change
Update any import statements from require(‘xmldom’) to require(‘@xmldom/xmldom’) where applicable
Please test end-to-end playback (especially DASH content) after making the change and let us know if you encounter any issues.