Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: yahoo/serialize-javascript Loading
base: v2.1.2
Choose a base ref
...
head repository: yahoo/serialize-javascript Loading
compare: v3.1.0
Choose a head ref
  • 17 commits
  • 6 files changed
  • 7 contributors

Commits on Dec 24, 2019

  1. Configuration menu
    Copy the full SHA
    35062c0 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2020

  1. Configuration menu
    Copy the full SHA
    2f5f126 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2020

  1. Test on Node.js v12 (#70)

    okuryu committed Jan 14, 2020
    Configuration menu
    Copy the full SHA
    fdfb10a View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2020

  1. Configuration menu
    Copy the full SHA
    82bb2d2 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2020

  1. Configuration menu
    Copy the full SHA
    eed510c View commit details
    Browse the repository at this point in the history
  2. v3.0.0

    okuryu committed Feb 16, 2020
    Configuration menu
    Copy the full SHA
    f5957ee View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2020

  1. Update example in README (#73)

    okuryu committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    9dbe8f6 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2020

  1. Configuration menu
    Copy the full SHA
    3064431 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2020

  1. Bump mocha from 7.1.0 to 7.1.1 (#77)

    Bumps [mocha](https://github.com/mochajs/mocha) from 7.1.0 to 7.1.1.
    - [Release notes](https://github.com/mochajs/mocha/releases)
    - [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
    - [Commits](mochajs/mocha@v7.1.0...v7.1.1)
    
    Signed-off-by: dependabot-preview[bot] <[email protected]>
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    dependabot-preview[bot] committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    c795cef View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2020

  1. [Security] Bump minimist from 1.2.0 to 1.2.5 (#78)

    Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.5. **This update includes a security fix.**
    - [Release notes](https://github.com/substack/minimist/releases)
    - [Commits](https://github.com/substack/minimist/compare/1.2.0...1.2.5)
    
    Signed-off-by: dependabot-preview[bot] <[email protected]>
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    dependabot-preview[bot] committed Mar 21, 2020
    Configuration menu
    Copy the full SHA
    1ac487e View commit details
    Browse the repository at this point in the history

Commits on May 20, 2020

  1. Don't replace regex / function placeholders within string literals (#79)

    Previously we weren't checking if the quote that started the placeholder
    was escaped or not, meaning an object like
    
        {"foo": /1"/, "bar": "a\"@__R-<UID>-0__@"}
    
    Would be serialized as
    
        {"foo": /1"/, "bar": "a\/1"/}
    
    meaning an attacker could escape out of `bar` if they controlled both
    `foo` and `bar` and were able to guess the value of `<UID>`.
    
    UID was generated once on startup, was chosen using `Math.random()` and
    had a keyspace of roughly 4 billion, so within the realm of an online
    attack.
    
    Here's a simple example that will cause `console.log()` to be called when
    the `serialize()`d version is `eval()`d
    
        eval('('+ serialize({"foo": /1" + console.log(1)/i, "bar": '"@__R-<UID>-0__@'}) + ')');
    
    Where `<UID>` is the guessed `UID`.
    
    This fixes the issue by ensuring that placeholders are not preceded by
    a backslash.
    
    We also switch to a higher entropy `UID` to prevent people from guessing it.
    
    Co-authored-by: Jordan Milne <[email protected]>
    Co-authored-by: Ryan Siebert <[email protected]>
    3 people committed May 20, 2020
    3 Configuration menu
    Copy the full SHA
    f21a6fb View commit details
    Browse the repository at this point in the history

Commits on May 21, 2020

  1. Bump nyc from 15.0.0 to 15.0.1 (#81)

    Bumps [nyc](https://github.com/istanbuljs/nyc) from 15.0.0 to 15.0.1.
    - [Release notes](https://github.com/istanbuljs/nyc/releases)
    - [Changelog](https://github.com/istanbuljs/nyc/blob/master/CHANGELOG.md)
    - [Commits](istanbuljs/nyc@v15.0.0...v15.0.1)
    
    Signed-off-by: dependabot-preview[bot] <[email protected]>
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    dependabot-preview[bot] committed May 21, 2020
    Configuration menu
    Copy the full SHA
    073c8d8 View commit details
    Browse the repository at this point in the history
  2. Bump mocha from 7.1.1 to 7.1.2 (#82)

    Bumps [mocha](https://github.com/mochajs/mocha) from 7.1.1 to 7.1.2.
    - [Release notes](https://github.com/mochajs/mocha/releases)
    - [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
    - [Commits](mochajs/mocha@v7.1.1...v7.1.2)
    
    Signed-off-by: dependabot-preview[bot] <[email protected]>
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    dependabot-preview[bot] committed May 21, 2020
    Configuration menu
    Copy the full SHA
    ea76b23 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2020

  1. Configuration menu
    Copy the full SHA
    5130a71 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2020

  1. Bump mocha from 7.1.2 to 7.2.0 (#83)

    Bumps [mocha](https://github.com/mochajs/mocha) from 7.1.2 to 7.2.0.
    - [Release notes](https://github.com/mochajs/mocha/releases)
    - [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
    - [Commits](mochajs/mocha@v7.1.2...v7.2.0)
    
    Signed-off-by: dependabot-preview[bot] <[email protected]>
    
    Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
    dependabot-preview[bot] committed May 26, 2020
    Configuration menu
    Copy the full SHA
    026a445 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2020

  1. Revert "support for bigint (#80)"

    This reverts commit 5130a71.
    okuryu committed May 28, 2020
    Configuration menu
    Copy the full SHA
    7cee7e4 View commit details
    Browse the repository at this point in the history
  2. v3.1.0

    okuryu committed May 28, 2020
    Configuration menu
    Copy the full SHA
    b54341e View commit details
    Browse the repository at this point in the history
Loading