Giter Club home page Giter Club logo

Comments (8)

dothebart avatar dothebart commented on June 1, 2024

Hi,
Please note that the release tarballs don't contain many of these, since they are just used with the test infrastructure.
Hence if you run a make install when compiling from the source tarballs, they will also not be installed as well.

from arangodb.

mark-bb avatar mark-bb commented on June 1, 2024

Hi @dothebart,

The list of modules provided is from the /usr/share/arangodb3/js/node/package-lock.json file of the packaged installation (not compiled from source).
Did I get it right, that this file may contain links to non-existing modules?
Is there any way to determine what modules of mentioned versions from the list above are really installed and used?

The reason I ask is: if a packaged ArangoDB installation really contains these mentioned modules with CRITICAL or HIGH severity at least, then we can't use it in production system due to security requirements.

from arangodb.

dothebart avatar dothebart commented on June 1, 2024

Yes, the json file is not the complete picture on the disk. /usr/share/arangodb3/js/node/node_modules/ will only contain a subset of that list. However some of your list are still there.

root@bruecklinux:~# ls /usr/share/arangodb3/js/node/node_modules/
accepts              babel-code-frame     dedent              highlight.js  joi                 mime-types  qs            statuses
ajv                  chai                 error-stack-parser  http-errors   joi-to-json-schema  minimatch   range-parser  timezone
ansi-html-community  content-disposition  extendible          i             js-yaml             ms          semver        type-is
aqb                  content-type         graphql-sync        iconv-lite    lodash              netmask     sinon         vary

from arangodb.

mark-bb avatar mark-bb commented on June 1, 2024

So, we can assume, that ArangoDB uses modules in the /usr/share/arangodb3/js/node/node_modules directory only, and
the correct way to check module version is to visit package.json in its subdirectory something like below.

d=/usr/share/arangodb3/js/node/node_modules 
find ${d?} -name 'package.json' -exec printf "{}\n" \; -exec jq '.name,.version' {} \; | tee modules.txt

Is this correct?

from arangodb.

mark-bb avatar mark-bb commented on June 1, 2024

@dothebart
I've corrected the issue text.
Is my method of checking all js modules and their versions used by ArangoDB above correct?

from arangodb.

dothebart avatar dothebart commented on June 1, 2024

yes, seems good - you should as well find sub modules this way.

from arangodb.

mark-bb avatar mark-bb commented on June 1, 2024

Yes, the ansi-regex 2.1.1 module name and version was found in some submodule directory by the way described above.

/usr/share/arangodb3/js/node/node_modules/babel-code-frame/node_modules/ansi-regex/package.json
"ansi-regex"
"2.1.1"

According to your comment this probably means, that ansi-regex 3.0.0 and 4.1.0 are not really installed and used despite the fact, that these versions are mentioned in package-lock.json. But ansi-regex 2.1.1 is really installed and used.

@dothebart, thanks a lot!

from arangodb.

dothebart avatar dothebart commented on June 1, 2024

Ok, great we could settle this.

from arangodb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.