This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate swc_ecma_parser

Dependencies

(13 total, 6 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 either^1.41.11.0up to date
 enum_kind^0.2.10.2.2up to date
 fxhash^0.2.10.2.1up to date
 lexical^5.2.26.1.1out of date
 log^0.40.4.21up to date
 num-bigint^0.20.4.4out of date
 serde^11.0.198up to date
 smallvec ⚠️^11.13.2maybe insecure
 swc_atoms^0.2.30.6.7out of date
 swc_common^0.10.160.33.25out of date
 swc_ecma_ast^0.45.00.112.8out of date
 swc_ecma_visit^0.31.00.98.7out of date
 unicode-xid^0.20.2.4up to date

Dev dependencies

(5 total, 3 outdated)

CrateRequiredLatestStatus
 env_logger^0.70.11.3out of date
 pretty_assertions^0.61.4.0out of date
 serde_json^11.0.116up to date
 testing^0.10.50.35.23out of date
 walkdir^22.5.0up 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.