{"maintainers":[{"name":"anonymous","email":"aaron@andyet.net"}],"keywords":[],"dist-tags":{"latest":"1.0.5"},"author":{"name":"Aaron McCall","email":"aaron@andyet.net","url":"https://github.com/aaronmccall"},"description":"A CommonJS library for working with Common Vulnerability Scoring System vectors and scores.","readme":"# cvss\nA CommonJS library for working with Common Vulnerability Scoring System vectors and scores.\n\n## Install\n\n`npm i cvss`\n\n## Usage\n\n```javascript\nvar cvss = require('cvss');\n\nvar score = cvss.getScore('CVSS:3.0/AV:P/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L');\n\nconsole.log(score) // => 6.2\n\nvar rating = cvss.getRating(score);\n\nconsole.log(rating) // => Medium\n```\n\n### #getScore [String or Object input], [Object options (optional)]\n\nThis is the main scoring method. It may be called with either a valid CVSS3 vector string (`'CVSS:3.0/AV:P/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L'`) or an object containing the key/value pairs (`{ AV: 'P', AC: 'H', PR: 'N', UI:'R', S: 'C', C: 'L', I: 'H', A: 'L' }`) corresponding to one as its **input** parameter.\n\nThe optional **options** parameter controls whether validation errors throw or not and whether optional temporal and environmental metrics are considered in score calculation\n\n**options**\n- _throw_: if validation returns an error, throw the error\n- _baseOnly_: only consider base metrics when calculating score\n- _temporal_: include temporal metrics when calculating score\n- _env_: include temporal AND environmental metrics when calculating score (both are included per CVSS3 spec)\n\n### #getBaseScore [String or Object input], [Object options (optional)]\n\nAccepts the same arguments as _getScore_ above, but enforces the _baseOnly_ option.\n\n### #getTemporalScore [String or Object input], [Object options (optional)]\n\nAccepts the same arguments as _getScore_ above, but enforces the _temporal_ option.\n### #getEnvironmentalScore [String or Object input], [Object options (optional)]\n\nAccepts the same arguments as _getScore_ above, but enforces the _environmental_ option.\n\n### #getRating [Number score]\n\nGiven a numeric score, returns the appropriate CVSS3 severity rating for that number: _None_ for scores < 0.1, _Low_ for scores >= 0.1 and < 4, _Medium_ for scores >=4 and < 7, _High_ for scores >= 7 and < 9, _Critical_ for scores >= 9.\n\n### #getBase [String or Object input], [Object options (optional)]\n\nReturns an object with the base score and its rating. Equivalent to\n```javascript\n{\n    score: getBaseScore(input),\n    rating: getRating(getBaseScore(input))\n}\n```\n\n### #getEnvironmental [String or Object input], [Object options (optional)]\n\nReturns an object with the environmental score and its rating. Equivalent to\n```javascript\n{\n    score: getEnvironmentalScore(input),\n    rating: getRating(getEnvironmentalScore(input))\n}\n```\n\n### #getTemporal [String or Object input], [Object options (optional)]\n\nReturns an object with the environmental score and its rating. Equivalent to\n```javascript\n{\n    score: getTemporalScore(input),\n    rating: getRating(getTemporalScore(input))\n}\n```\n\n### #getAll [String or Object input], [Object options (optional)]\n\nReturns object with the score and rating for all three scores:\n```javascript\n{\n    base: getBase(input),\n    temporal: getTemporal(input),\n    environmental: getEnvironmental(input)\n}\n```\n","repository":{"type":"git","url":"git+https://github.com/aaronmccall/cvss.git"},"bugs":{"url":"https://github.com/aaronmccall/cvss/issues"},"license":"ISC","versions":{"1.0.0":{"name":"cvss","version":"1.0.0","description":"A CommonJS library for working with Common Vulnerability Scoring System vectors and scores.","main":"index.js","scripts":{"test":"lab -v -t 99"},"repository":{"type":"git","url":"git+https://github.com/aaronmccall/cvss.git"},"keywords":[],"author":{"name":"Aaron McCall","email":"aaron@andyet.net","url":"https://github.com/aaronmccall"},"license":"ISC","bugs":{"url":"https://github.com/aaronmccall/cvss/issues"},"homepage":"https://github.com/aaronmccall/cvss#readme","devDependencies":{"code":"^2.2.0","eslint":"^2.8.0","lab":"^10.3.1"},"gitHead":"104045d16918751e7a1a3d9010027d642b8dbd3c","_id":"cvss@1.0.0","_shasum":"bb628550a1df6b28ed775c99d4b13b1fe9af7c3f","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.7.0","_npmUser":{"name":"anonymous","email":"aaron@andyet.net"},"dist":{"shasum":"bb628550a1df6b28ed775c99d4b13b1fe9af7c3f","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/cvss/-/cvss-1.0.0.tgz","integrity":"sha512-IH4kvUwQwzEYjSTCTsy1D+X1ajMMllfsB88fDNEAXetF6HROx/Gh1qyEfRp6U7HriiosSkw2U2RINLV5qsbSJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDlx727VDISchuIrpKyXwzTT52xmUg9cG1E9VgXQeXqTAiEA8G0xOg/N6y9fAkpO0uUX1gATw9Fkf7G7JFRM7BmHuLw="}]},"maintainers":[{"name":"anonymous","email":"aaron@andyet.net"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cvss-1.0.0.tgz_1462213644575_0.999082695459947"},"directories":{}},"1.0.1":{"name":"cvss","version":"1.0.1","description":"A CommonJS library for working with Common Vulnerability Scoring System vectors and scores.","main":"index.js","scripts":{"test":"lab -v -t 99"},"repository":{"type":"git","url":"git+https://github.com/aaronmccall/cvss.git"},"keywords":[],"author":{"name":"Aaron McCall","email":"aaron@andyet.net","url":"https://github.com/aaronmccall"},"license":"ISC","bugs":{"url":"https://github.com/aaronmccall/cvss/issues"},"homepage":"https://github.com/aaronmccall/cvss#readme","devDependencies":{"code":"^2.2.0","eslint":"^2.8.0","lab":"^10.3.1"},"gitHead":"02cd81627392cc94e4b24be2ed5e0dca47f895e1","_id":"cvss@1.0.1","_shasum":"5c07df53616ac56d66e8f474bed25e3c146193db","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.7.0","_npmUser":{"name":"anonymous","email":"aaron@andyet.net"},"dist":{"shasum":"5c07df53616ac56d66e8f474bed25e3c146193db","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/cvss/-/cvss-1.0.1.tgz","integrity":"sha512-n0rs5TnQskT9oKKg/QiTm/lEwfqZoPsakXlECb2zsTnm+xBsXJLiyYVh9dcohQIRrUDYdBkFlg56E2+/TYyhKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID7t+AyxDoukgAKwmMlzkv0Q1mHKsejR6z9QxhBWsZKdAiApFAz1PX17NBzadfQsDHp5V1tigTC0iwuDRd3d9aF9KA=="}]},"maintainers":[{"name":"anonymous","email":"aaron@andyet.net"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cvss-1.0.1.tgz_1462213701732_0.4465111652389169"},"directories":{}},"1.0.2":{"name":"cvss","version":"1.0.2","description":"A CommonJS library for working with Common Vulnerability Scoring System vectors and scores.","main":"index.js","scripts":{"test":"lab -v -t 99"},"repository":{"type":"git","url":"git+https://github.com/aaronmccall/cvss.git"},"keywords":[],"author":{"name":"Aaron McCall","email":"aaron@andyet.net","url":"https://github.com/aaronmccall"},"license":"ISC","bugs":{"url":"https://github.com/aaronmccall/cvss/issues"},"homepage":"https://github.com/aaronmccall/cvss#readme","devDependencies":{"code":"^2.2.0","eslint":"^2.8.0","lab":"^10.3.1"},"gitHead":"60b683f7dd3cc5448d285df8f4e5082a60d69652","_id":"cvss@1.0.2","_shasum":"df67e92bf12a796f49e928799c8db3ba74b9fcd6","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"anonymous","email":"aaron@andyet.net"},"dist":{"shasum":"df67e92bf12a796f49e928799c8db3ba74b9fcd6","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/cvss/-/cvss-1.0.2.tgz","integrity":"sha512-fLaQm8syXECweh26AkAO+oNv32LOaOAU7VWinqqbJiz+ITGBsUtbcGneBdBWJPkgl4ebIZ3kV3xVbMQXkwIUNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG3fbniS/btuSfrfszXBFij4+DsRVapuYVHQb9IgDmUCAiEA92U2qdincXwEk4bufUa+npNnANBYymECMO+hCYHX66k="}]},"maintainers":[{"name":"anonymous","email":"aaron@andyet.net"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cvss-1.0.2.tgz_1485981684569_0.12163481605239213"},"directories":{}},"1.0.3":{"name":"cvss","version":"1.0.3","description":"A CommonJS library for working with Common Vulnerability Scoring System vectors and scores.","main":"index.js","scripts":{"test":"lab -v -t 99"},"repository":{"type":"git","url":"git+https://github.com/aaronmccall/cvss.git"},"keywords":[],"author":{"name":"Aaron McCall","email":"aaron@andyet.net","url":"https://github.com/aaronmccall"},"license":"ISC","bugs":{"url":"https://github.com/aaronmccall/cvss/issues"},"homepage":"https://github.com/aaronmccall/cvss#readme","devDependencies":{"code":"^2.2.0","eslint":"^2.8.0","lab":"^15.4.5"},"gitHead":"49c67cc3d566daf3157a441c15682ba4824e05fe","_id":"cvss@1.0.3","_npmVersion":"6.0.1","_nodeVersion":"9.10.1","_npmUser":{"name":"anonymous","email":"amacdagreat@gmail.com"},"dist":{"integrity":"sha512-1FfNhEFVfeC+fgZpEr6oCOOTXifJicZS+Lq/mmUKI4Om+2O8zYspc/uhw51He+CTM5givI1dqIw5JUqyi1BWtA==","shasum":"70df9c4a4e07fdb9341f27a2847a21df25c3a83a","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/cvss/-/cvss-1.0.3.tgz","fileCount":14,"unpackedSize":33686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbAyleCRA9TVsSAnZWagAApCwQAISZXAQMCzCGyt+xj/WO\nTw0VDEKD2NABZeDopoSyvpPn7vMUJogeT3iAaCbFaGRWTsiEva3SSL37K8Tw\nz75okddNMtJ5+c0OjcK+WWb5I4G/0BJ/8fBKPwA/st7r+8n213C+vYoy4uZ+\ncBhOTlSIU/RFUGhYrfnen0ms65B8E4+R0F1N8LZz6P5XWRQWtTPokCQrUeL+\n0bOrVqIf16gx7V2u8J1dcHQ3Z/stANV5qsr6cfZR0TiK3fO7ZChwZuf9SDON\n78Wq65k7R5MU6ocJFYgCIcXwmC3ZdYPNKn0O2RNMHXW9g8J3JxidhWqHhSEK\nKhmVnimkzns/GaMeyTWzg1q5asUEidsyNQA44fIz9uO+whxELsYT3KAW/SNj\nUZmRSFnMVunBCJpsB0+3EF5/J50zHsDXqBpOikWfZkhJ18uTPzbfbi4y7HKp\nhTzKIf3T8Ryj6UYArX2x+hjLMycJKzKOEA7pyOt5FijS/eOtQEJ+Bxy3IR7I\nvBQjhUJp56FuDGiHaJ7AKqY/yrcWLouvZsICgqyJ99f8Zco6LxiWqScXbXxG\nq11vfMOAXPEHlgsJ1U5gpqO0DRJLGUeLGjIMAM0ettidt4KdZrwJA45M1XSk\nAcNVVq2M76pO3xjT7MA6pGUCUwafNd7WrVVnuroxPVY1rqzFtGSoz3Rr0FLl\nQJiE\r\n=4sQr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpUTX7dWpLwYm3Ee7yYZdt3rbGXAChozgQqIWnYvrphQIgZBW0y1ess7DaDThwY2QhEERGuyLMZEFTAuI+vm4fg7w="}]},"maintainers":[{"name":"anonymous","email":"aaron@andyet.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cvss_1.0.3_1526933853590_0.3977784338778314"},"_hasShrinkwrap":false},"1.0.4":{"name":"cvss","version":"1.0.4","description":"A CommonJS library for working with Common Vulnerability Scoring System vectors and scores.","main":"index.js","scripts":{"test":"lab -v -t 99"},"repository":{"type":"git","url":"git+https://github.com/aaronmccall/cvss.git"},"keywords":[],"author":{"name":"Aaron McCall","email":"aaron@andyet.net","url":"https://github.com/aaronmccall"},"license":"ISC","bugs":{"url":"https://github.com/aaronmccall/cvss/issues"},"homepage":"https://github.com/aaronmccall/cvss#readme","devDependencies":{"code":"^2.2.0","eslint":"^2.8.0","lab":"^15.4.5"},"gitHead":"44bb567ee03115bdf82dd1beaf9afb544449bcce","_id":"cvss@1.0.4","_npmVersion":"6.2.0","_nodeVersion":"9.10.1","_npmUser":{"name":"anonymous","email":"amacdagreat@gmail.com"},"dist":{"integrity":"sha512-NvyksySgKXK/98Cdc0IqP7UU/LKFy0O//hoCSQdahcP5w1oSZvOhAeb7PmTmIAkELfyoWGX1jeQKqYCBWy4RyQ==","shasum":"7f4093b0e462e2e6b11fe3dcd08168b8a8693163","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/cvss/-/cvss-1.0.4.tgz","fileCount":14,"unpackedSize":34049,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbnu/UCRA9TVsSAnZWagAAtcUP/AuRoqnx3QFWr2bkNJEM\nlOMgyJT0WpI+UheQA6zxBitvCGrWkfXdDRH+MO7+3Kw0A7HoQOywJ9xdfkn+\nHzAiEv1Erq2BBC2swXbuRx48CneE2Z97uesct+bTAUaejN5kN1sMeIQXezXm\n/XAiK1/f/VQtK7UCcdxOiaZ+YfzRFwfOizAOD5ACcoyDJFidPcXpYW6+xsz3\nVpyeJEtxQ4YyojK7sp5//GB/OBcCBdJaWT2J7cw2+wT78w+lgTtVDe1Yp26a\nCYBm2JCgObb/8OycaItWNrczixi4X6qpdbIOJDEVkHDD6Akx4HDFoxJMs6NI\nrSca8ObD01RoND8NLvA7nBEDiPaXNR41m7acRBaXtncwV62zy8Plfz4V1KjC\nfRdFhgqdoLKrHjsl9MiYsHb6NK+6JFdHw0M0q5JWN55LIi1GMG+Vsm0889oA\nGJsjnRR/YKe+oFzqu9xJar3MD90SHXkE3AijJK1vroiI/PKEAW9z/KmLgV31\ncpwSFV+oDFuYpR3Bz1dciEWB7JN3X6Lera6Bc26LiGHHr2OjQjSQfKjzRcrq\nupvxWJse2r1UY9SNO8HScd+66I+62k7VTTsmIdju7gPq5jtsUJiu/iNJjfSo\nTztfkcF1pD7wltMtT8B2WVFt3UJSm4kkidkbt7zofW1vS1DkmGtd5ulv+Qgp\n1+bH\r\n=ur1u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICY1B5q5/clCzdigeOBDV2BCmEjDwBARQETzCvimWrp4AiBtBGGz+6QHyA2jKZuq5BM9eGfxw9Y5QpMTDt5jofjLQQ=="}]},"maintainers":[{"name":"anonymous","email":"aaron@andyet.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cvss_1.0.4_1537142739827_0.8415082528079256"},"_hasShrinkwrap":false},"1.0.5":{"name":"cvss","version":"1.0.5","description":"A CommonJS library for working with Common Vulnerability Scoring System vectors and scores.","main":"index.js","scripts":{"test":"lab -v -t 99"},"repository":{"type":"git","url":"git+https://github.com/aaronmccall/cvss.git"},"keywords":[],"author":{"name":"Aaron McCall","email":"aaron@andyet.net","url":"https://github.com/aaronmccall"},"license":"ISC","bugs":{"url":"https://github.com/aaronmccall/cvss/issues"},"homepage":"https://github.com/aaronmccall/cvss#readme","devDependencies":{"code":"^2.2.0","eslint":"^2.8.0","lab":"^15.4.5"},"gitHead":"7db33fd92be255d4b3dc59cb7a5d9f03057c8cf8","_id":"cvss@1.0.5","_npmVersion":"6.4.1","_nodeVersion":"9.10.1","_npmUser":{"name":"anonymous","email":"amacdagreat@gmail.com"},"dist":{"integrity":"sha512-lfApnkcBoP+3viCUFOrqRmeqsyoIuiXouYg3Gt+1f3wsYzm1xDXnvyyMiPGoODFYWnoAl9LHPWWJH5zM6HaUoA==","shasum":"6e9f280f225ee007ebcb81214b3dc3d08fbf13fc","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/cvss/-/cvss-1.0.5.tgz","fileCount":14,"unpackedSize":34039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcLoUZCRA9TVsSAnZWagAAWP0P/ihv0GdGiIGuCm7rCSS8\nArkcGgxnwLZBzn3jRjtRhC4on5iiwTb4oClDcWxcGnj7LhqSuFruy90rAqmA\nxz2DgfDHRv83C+kDU059TiDBlB8x4Do7qZEnp6Mk47/JATuPuIDykJMiAaN2\nAuyW4ilqqEm5V5+gFfMD8NZdp6R6DFdrrtzrAryGE6vV5sRzM8nIoXem8Uur\nk3r2oRGLAWG224Vvn2j7qVNVMhXYpMgI55Hz9P1U/cjq+11eVzVX2iq+/8c1\n6XUDvRmIXShLTOnThMog7/OZ7zpp0APTqM2LZKrAd9oilF2L3OVupHCF2vWh\nhx8a2eoWmGm9Mz3Ohx6BR+wgfUOoQZjjG3HlESDOT755Gnf12faasxSD/f57\ngalWxhaqsEaVT2Dw2guzZNOd1YbSsbDnsM3P+S4eWr30iXtuljoNU5mdkBCD\ntbnKbDcZydaYuzWfdfuSbCG6PXElCFDq3k4zKTaWRlfllxBN+7KW511i+k6v\nB952i5h7oXqjCfahfcUsdv3R+7xcqwuWeWaZfHZX4lmS80rVnPYo4dbIIowC\nJVLxLCwnLXlO1R8ycImK4ayR6avPp48I1sOk2zm0VRK0Sg9EbDeiVn5lk33u\nVGfb6EOTVT3x+ZEcu/+xg14n3unBjgfddfnifgqKjqw5Hatdd6l8qDbXPExi\nJBgt\r\n=B+YV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCndbJ6narCN7CJGHO3nNxQlWWRcCaJH4KXoYE/FF1RpQIgO9wycMRBSAzpT0ahbSxIkqDJqNsnrta/sJlRwKC+hbU="}]},"maintainers":[{"name":"anonymous","email":"aaron@andyet.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cvss_1.0.5_1546552601137_0.9371037621592271"},"_hasShrinkwrap":false}},"name":"cvss","time":{"modified":"2022-06-14T06:34:15.871Z","created":"2016-05-02T18:27:25.552Z","1.0.0":"2016-05-02T18:27:25.552Z","1.0.1":"2016-05-02T18:28:24.210Z","1.0.2":"2017-02-01T20:41:26.445Z","1.0.3":"2018-05-21T20:17:33.678Z","1.0.4":"2018-09-17T00:05:39.960Z","1.0.5":"2019-01-03T21:56:41.328Z"},"readmeFilename":"README.md","homepage":"https://github.com/aaronmccall/cvss#readme"}