Building for the Splunk Platform

How to fix AppInspect check_for_vulnerable_javascript_library_usage from Add-on Builder content?

sloshburch
Splunk Employee
Splunk Employee

Some of my apps are failing AppInspect's check_for_vulnerable_javascript_library_usage check but I didn't include any javascript. I did built the apps with the Splunk Add-on Builder and I see some javascript that was packaged as a result.

Is there a fix for this?

Labels (2)
0 Karma
1 Solution

sloshburch
Splunk Employee
Splunk Employee

There is a fix!

The Version 4.1.0 Release Notes show that these items were fixed! The way to update your app is a bit nuanced. You'll need to:

  1. Export the app from any Add-on Builder
  2. Import the app into Add-on Builder v4.1.0 or newer
  3. Download the app packaged from Add-on Builder v4.1.0 or newer

The resulting app package that you download will have the fix!

You can validated by running the old app package against AppInspect with the `cloud` tag, then run the fixed app package against AppInspect with the `cloud`. See Send requests using the Splunk AppInspect collection for Postman  on splunk>dev for more guidance.

View solution in original post

sloshburch
Splunk Employee
Splunk Employee

There is a fix!

The Version 4.1.0 Release Notes show that these items were fixed! The way to update your app is a bit nuanced. You'll need to:

  1. Export the app from any Add-on Builder
  2. Import the app into Add-on Builder v4.1.0 or newer
  3. Download the app packaged from Add-on Builder v4.1.0 or newer

The resulting app package that you download will have the fix!

You can validated by running the old app package against AppInspect with the `cloud` tag, then run the fixed app package against AppInspect with the `cloud`. See Send requests using the Splunk AppInspect collection for Postman  on splunk>dev for more guidance.

mikedgibson
New Member

I inherited the maintenance of an app that was built with a version of add-on builder that is triggering this warning. Unfortunately, I do not have access to an export of this app from add-on builder. Is there a way for me to make this change without an export then import?

0 Karma
Get Updates on the Splunk Community!

Splunk Education - Fast Start Program!

Welcome to Splunk Education! Splunk training programs are designed to enable you to get started quickly and ...

Five Subtly Different Ways of Adding Manual Instrumentation in Java

You can find the code of this example on GitHub here. Please feel free to star the repository to keep in ...

New Splunk APM Enhancements Help Troubleshoot Your MySQL and NoSQL Databases Faster

Splunk Observability has two new enhancements to make it quicker and easier to troubleshoot slow or frequently ...