
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
grunt-script-template
Advanced tools
Grunt task to generate files using script-template.
To use grunt-script-template you'll need three things: a template, data, and a destination. grunt-script-template will then run the data against the template and store the result in the specified destination. Both the template and destination are specified as relative paths to the files. Data may be specified as JSON data within the Gruntfile.js or can be specified as a function which will be evaluated with the result run against the template.
Inside your grunt.initConfig call you'll want to specify each template you want to run and a corresponding template (src), destination (dest), and data (data).
For example, the following is the configuration for the tests included with grunt-script-template:
grunt.initConfig({
pkg: 'package.json',
'script-template': {
'static-array-test': {
src: 'test/static-array-template.ts',
dest: 'temp/static-array.ts',
data: ['One', 'Two', 'Three']
},
'static-object-test': {
src: 'test/static-object-template.ts',
dest: 'temp/static-object.ts',
data: {title: 'Static Object Title', values: ['a', 'b', 'c']}
},
'dynamic-one-test': {
src: 'test/dynamic-one-template.ts',
dest: 'temp/dynamic-one.ts',
data: getData
// getData is a previously defined function,
// notice no parenthesis, passing the function,
// not the results
}
},
clean: {
tests: ['temp']
},
'jasmine_node': {
'tests': ['test/']
}
});
grunt.loadNpmTasks('grunt-script-template');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-jasmine-node');
grunt.registerTask('default', ['clean', 'script-template', 'jasmine_node']);
script-template is a simple templating engine designed to generate scripts (JavaScript, TypeScript, CoffeeScript). The main advantage of this engine is that the source templates are themselves valid JavaScript/TypeScript/CoffeeScript.
For more information on templates and data, see https://github.com/samuelneff/script-template.
Copyright (c) 2014 Samuel Neff Licensed under the (MIT license)[https://github.com/samuelneff/grunt-script-template/blob/master/LICENSE-MIT].
FAQs
Generates files using script-template
We found that grunt-script-template demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.