Skip to content

Commit ed57b6e

Browse files
authored
Merge branch 'rustsec:main' into main
2 parents 2d6da2d + f71b77f commit ed57b6e

File tree

51 files changed

+967
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+967
-14
lines changed

.duplicate-id-guard

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
This file causes merge conflicts if two ID assignment jobs run concurrently.
22
This prevents duplicate ID assignment due to a race between those jobs.
3-
0e609c43a313fd0a283b59b46bea5f3f670a2d409f772f86117a3ef2d7297ce4 -
3+
31a8abd8cc612f6b98d74d057b6404593b695fc8824cd6fb0236e21eaa7b4b39 -

.github/workflows/assign-ids.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: Assign IDs
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1313

1414
- name: Cache cargo bin
1515
id: admin-cache

.github/workflows/export-osv.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
publish-web:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212
with:
1313
ref: osv
1414

.github/workflows/publish-web.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
publish-web:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212
with:
1313
ref: gh-pages
1414

.github/workflows/sync-ids.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Synchronize IDs
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515

1616
- name: Cache cargo bin
1717
id: admin-cache

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Lint advisories
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414

1515
- name: Cache cargo bin
1616
id: admin-cache

CONTRIBUTING.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ To add an advisory to the RustSec database, open a [Pull Request] against
1313
3. Write a human-readable Markdown description in the same file, after the <code>\```</code> marker and a newline. Use [this example advisory][example] as a reference.
1414
4. Open a [Pull Request]. After being reviewed your advisory will be assigned
1515
a `RUSTSEC-*` advisory identifier and be published to the database.
16-
16+
1717
### Optional Steps
1818

1919
Feel free to do either or both of these as you see fit (we recommend you do both):
@@ -55,13 +55,11 @@ When in doubt, please open a PR.
5555
A: No, anyone can file an advisory against any crate. The legitimacy of
5656
vulnerabilities will be determined prior to merging. If a vulnerability
5757
turns out to be fake, it will be removed from the database.
58-
58+
5959
**Q: Can I file an advisory without creating a pull request?**
6060

6161
A: Yes, instead of creating a full advisory yourself, you can also
62-
[open an issue on the advisory-db repo](https://github.com/RustSec/advisory-db/issues)
63-
or email information about the vulnerability to
64-
62+
[open an issue on the advisory-db repo](https://github.com/RustSec/advisory-db/issues).
6563

6664
**Q: Does this project have a GPG key or other means of handling embargoed vulnerabilities?**
6765

HOWTO_UNMAINTAINED.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ When creating the advisory, please include a link to an open issue
7171
on the upstream project repository where the maintenance status has been
7272
discussed in the `url = "..."` field of the advisory.
7373

74+
If the upstream project repository has issues disabled, or if an upstream
75+
issue does not adequately explain the circumstances, please include
76+
`url = "..."` linking to an issue in the `advisory-db` project.
77+
7478
For more information on adding an advisory to the RustSec DB, see:
7579

7680
<https://github.com/RustSec/advisory-db/blob/main/CONTRIBUTING.md>

crates/adler/RUSTSEC-2025-0056.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
```toml
2+
[advisory]
3+
id = "RUSTSEC-2025-0056"
4+
package = "adler"
5+
date = "2025-09-05"
6+
url = "https://github.com/jonas-schievink/adler"
7+
informational = "unmaintained"
8+
9+
[versions]
10+
patched = []
11+
```
12+
13+
# adler crate is unmaintained, use adler2 instead
14+
15+
The `adler` crate is no longer actively maintained. If you rely on this crate, consider switching to a maintained alternative.
16+
17+
## Recommended alternatives
18+
19+
- [`adler2`](https://crates.io/crates/adler2)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
```toml
2+
[advisory]
3+
id = "RUSTSEC-2025-0071"
4+
package = "ammonia"
5+
date = "2025-09-21"
6+
categories = ["format-injection"]
7+
keywords = ["html", "xss"]
8+
9+
[versions]
10+
patched = [">= 4.1.2", ">= 4.0.1, < 4.1.0", ">= 3.3.1, < 4.0.0"]
11+
```
12+
13+
# Incorrect handling of embedded SVG and MathML leads to mutation XSS after removal
14+
15+
Affected versions of this crate did not correctly strip namespace-incompatible tags
16+
in certain situations, causing it to incorrectly account for differences between HTML,
17+
SVG, and MathML.
18+
19+
This vulnerability only has an effect when the `svg` or `math` tag is allowed,
20+
because it relies on a tag being parsed as html during the cleaning process, but
21+
serialized in a way that causes in to be parsed as xml by the browser.
22+
23+
Additionally, the application using this library must allow a tag that is parsed as raw text in HTML.
24+
These [elements] are:
25+
26+
* title
27+
* textarea
28+
* xmp
29+
* iframe
30+
* noembed
31+
* noframes
32+
* plaintext
33+
* noscript
34+
* style
35+
* script
36+
37+
Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default.
38+
39+
[elements]: https://github.com/servo/html5ever/blob/57eb334c0ffccc6f88d563419f0fbeef6ff5741c/html5ever/src/tree_builder/rules.rs

0 commit comments

Comments
 (0)