Sourced from @xmldom/xmldom's
releases.
0.8.12
Fixed
- preserve trailing whitespace in ProcessingInstruction data
[#962](https://github.com/xmldom/xmldom/issues/962)/[#42](https://github.com/xmldom/xmldom/issues/42)- Security:
createCDATASectionnow throwsInvalidCharacterErrorwhendatacontains"]]>", as required by the WHATWG DOM spec.GHSA-wh4c-j3r5-mjhp- Security:
XMLSerializernow splits CDATASection nodes whose data contains"]]>"into adjacent CDATA sections at serialization time, preventing XML injection via mutation methods (appendData,replaceData,.data =,.textContent =).GHSA-wh4c-j3r5-mjhpCode that passes a string containing
"]]>"tocreateCDATASectionand relied on the previously unsafe behavior will now receiveInvalidCharacterError. Use a mutation method such asappendDataif you intentionally need"]]>"in a CDATASection node's data.Thank you,
@thesmartshadow,@stevenobiajulu, for your contributions
Sourced from @xmldom/xmldom's
changelog.
0.8.12
Fixed
- preserve trailing whitespace in ProcessingInstruction data
[#962](https://github.com/xmldom/xmldom/issues/962)/[#42](https://github.com/xmldom/xmldom/issues/42)- Security:
createCDATASectionnow throwsInvalidCharacterErrorwhendatacontains"]]>", as required by the WHATWG DOM spec.GHSA-wh4c-j3r5-mjhp- Security:
XMLSerializernow splits CDATASection nodes whose data contains"]]>"into adjacent CDATA sections at serialization time, preventing XML injection via mutation methods (appendData,replaceData,.data =,.textContent =).GHSA-wh4c-j3r5-mjhpCode that passes a string containing
"]]>"tocreateCDATASectionand relied on the previously unsafe behavior will now receiveInvalidCharacterError. Use a mutation method such asappendDataif you intentionally need"]]>"in a CDATASection node's data.Thank you,
@thesmartshadow,@stevenobiajulu, for your contributions
189cb78
0.8.12ed08df7
fix: XML injection via unsafe CDATA serialization (GHSA-wh4c-j3r5-mjhp)
(#968)a5b929b
chore: clean up generated test artefacts before running ci-local4e37a20
ci: run format:check in lint jobac0ac77
chore: ignore generated files when checking formatting968c893
chore: add local CI script and format:check scriptac40424
fix: preserve trailing whitespace in ProcessingInstruction data (#962)cece752
chore: add .nvmrc pointing to node version 18cbf44d9
docs: improve links to changes in most recent releaseThis version was pushed to npm by karfau, a new releaser for
@xmldom/xmldom since your current version.