Security Advisories (1)
CVE-2020-7746 (2020-10-29)

This affects the package chart.js before 2.9.4. The options parameter is not properly sanitized when it is processed. When the options are processed, the existing options (or the defaults options) are deeply merged with provided options. However, during this operation, the keys of the object being set are not checked, leading to a prototype pollution.

NAME

Wight::Chart::Google - Save google charts to images using phantomjs

VERSION

version 0.003

SYNOPSIS

use Wight::Chart::Google;

my $chart = Wight::Chart::Google->new(
  type => "area",
  width => 900,
  height => 500,
  options => {
    backgroundColor => 'transparent',
    hAxis => { gridlines => { color => "#fff" } },
    vAxis => { gridlines => { color => "#fff" } },
    legend => { position => 'none' },
  }
);
$chart->columns([
  { name => 'Day', type => 'string' },
  { name => 'Amount', type => 'number' },
]);
$chart->rows([['1st',100], ['2nd',150], ['3rd',50], ['4th',70]]);
$chart->render();

NAME

Wight::Chart::Google - Generate static google charts

AUTHOR

Simon Elliott <simon@papercreatures.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Simon Elliott.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.