Update security updates [SECURITY] (release/2.1) - autoclosed#348
Closed
renovate[bot] wants to merge 1 commit into
Closed
Update security updates [SECURITY] (release/2.1) - autoclosed#348renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.1.2→4.1.31.0.102→1.0.103mXSS in ammonia via MathML
annotation-xmlencoding stripGHSA-9jh8-v38h-cvhr / RUSTSEC-2026-0193
More information
Details
If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser.
The
annotation-xmltag has slightly different behavior than the other "integration point"tags in MathML and SVG, but ammonia didn't handle it, so it didn't correctly
strip the namespace-incompatible tags.
This vulnerability only has an effect when the
mathandannotation-xmltagsare both enabled, but the
encodingattribute is disabled, because it relieson the following sequence of steps:
<math><annotation-xml encoding="text/html"><gadget></annotation-xml></math>.<gadget>is parsed as HTML.<math><annotation-xml><gadget></annotation-xml></math>. Because the encoding attribute is gone,<gadget>is now parsed as MathML.Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML.
These elements are:
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default.
Discovered by: ivan0912 (YesWeHack) · Date: 2026-06-29 · Found via local differential analysis and source review of ammonia's sanitisation pipeline; no third-party systems were tested.
Severity
Unknown
References
This data is provided by OSV and the Rust Advisory Database (CC0 1.0).
Unsoundness in
Error::downcast_mut()RUSTSEC-2026-0190
More information
Details
Affected versions of this crate violate borrow rules, resulting in undefined behavior, when the user adds context to an error via
Error::contextand then later callsError::downcast_muton the returnedError.The flaw was corrected in commit
6e8c000by revising how the mutable reference is constructed, avoiding inclusion of a shared reference in the resulting borrow chain.Example
Miri output
Severity
Unknown
References
This data is provided by OSV and the Rust Advisory Database (CC0 1.0).
Configuration
📅 Schedule: (in timezone Europe/Warsaw)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.