This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate swc_ecma_parser

Dependencies

(12 total, 3 outdated, 1 insecure)

CrateRequiredLatestStatus
 either^1.41.6.1up to date
 enum_kind^0.2.10.2.1up to date
 fxhash^0.2.10.2.1up to date
 log^0.40.4.14up to date
 num-bigint^0.20.4.0out of date
 serde^11.0.125up to date
 smallvec^11.6.1insecure
 swc_atoms^0.2.30.2.6up to date
 swc_common^0.10.100.10.17up to date
 swc_ecma_ast^0.40.00.43.1out of date
 swc_ecma_visit^0.26.00.29.1out of date
 unicode-xid^0.20.2.2up to date

Dev dependencies

(5 total, 2 outdated)

CrateRequiredLatestStatus
 env_logger^0.70.8.3out of date
 pretty_assertions^0.60.7.2out of date
 serde_json^11.0.64up to date
 testing^0.10.30.10.5up to date
 walkdir^22.3.2up to date

Security Vulnerabilities

smallvec: Buffer overflow in SmallVec::insert_many

RUSTSEC-2021-0003

A bug in the SmallVec::insert_many method caused it to allocate a buffer that was smaller than needed. It then wrote past the end of the buffer, causing a buffer overflow and memory corruption on the heap.

This bug was only triggered if the iterator passed to insert_many yielded more items than the lower bound returned from its size_hint method.

The flaw was corrected in smallvec 0.6.14 and 1.6.1, by ensuring that additional space is always reserved for each item inserted. The fix also simplified the implementation of insert_many to use less unsafe code, so it is easier to verify its correctness.

Thank you to Yechan Bae (@Qwaz) and the Rust group at Georgia Tech’s SSLab for finding and reporting this bug.