Skip to content

v0.2.10

Latest

Choose a tag to compare

@Sagargupta16 Sagargupta16 released this 02 Nov 01:14
10fe9ca

Security

  • SC021's unquoted-colon regex ran in quadratic time on a long name: or description: line (CodeQL js/polynomial-redos): a 20,000-character line took 190 to 400 ms and the time grew with the square of the length. It now matches the value's first character with a class that cannot overlap \s, and checks for ": " with includes(), so the same lines take under 1 ms.

Fixed

  • SC021 flagged a correctly quoted value with two or more spaces after the colon (description: "Use when: testing"), because the old regex's \s+ gave back a space and the quote check then looked at that space. It now looks at the value's first non-space character.