Denoのレジストリにおける任意パッケージの改竄 + encoding/yamlのCode Injection
blog.ryotak.net
Published on blog.ryotak.net
2021-11-30 2998 字 Deno 脆弱性 TypeScript Supply Chain
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
Deno is a runtime for JavaScript and TypeScript built on V8 and Rust. Its official site describes it as Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust. That claim is what prompted this investigation: how secure is it really?
The research covered three codebases:
denoland/deno: the core runtime.denoland/deno_std: the Deno standard library, a separate repository that is not bundled into the runtime.denoland/deno_registry2: the code behind deno.land/x.
deno.land/x is the module hosting service for Deno. It integrates with GitHub releases and can update modules automatically. It hosts a large number of modules, including the Deno install script, and sits at the centre of the Deno ecosystem. By default the GitHub integration uploads every file in the repository, which makes releases unnecessarily large, so a subdir parameter exists to restrict the upload to a chosen directory.
Three vulnerabilities were found across the three codebases. The one in the core runtime was already a known issue and is not covered here. The other two are described below: a code injection in the standard library's encoding/yaml package, and a path traversal in deno.land/x that allowed reading arbitrary files on the host, which in turn allowed tampering with arbitrary packages.
A note on process: Deno Land Inc. does not run a bug bounty programme and has not given explicit permission for vulnerability testing. The findings were reported as potential vulnerabilities inferred from public information, without actually attacking or testing the live service. The author also notes that the information could be inaccurate because the vulnerabilities could not be verified. Vulnerabilities in Deno Land Inc. services should be reported to [redacted]
Setup
No accounts, roles or special tooling are described. The work was a source code review of the three repositories listed above, reading the code rather than exercising a live target. The relevant preconditions for each finding are stated in the sections below.
Finding it
The review was a quick read of the three repositories rather than an exhaustive audit. In the standard library, the YAML parsing package encoding/yaml supports an extended schema in addition to the default one. That schema lets YAML express regular expressions, undefined and JavaScript functions. The function handling looked wrong: it reconstructs a function from the YAML text by evaluating it, which means any JavaScript placed in the document runs.
In deno.land/x, the subdir parameter, which exists to limit an upload to a subdirectory of the cloned repository, is joined onto the clone path without any sanitisation. Because the resulting path is then walked and every file found under it is uploaded to S3, a subdir value containing .. sequences escapes the clone directory and pulls in files from anywhere on the host.
Exploitation
Step 1: Code injection through the extended YAML schema
The extended schema is opt-in. A caller uses it by passing EXTENDED_SCHEMA to parse, as in this example from the report:
import {
EXTENDED_SCHEMA,
parse,
} from "https://deno.land/std@$STD_VERSION/encoding/yaml.ts";
const data = parse(
`
regexp:
simple: !!js/regexp foobar
modifiers: !!js/regexp /foobar/mi
undefined: !!js/undefined ~
function: !!js/function >
function foobar() {
return 'hello world!';
}
`,
{ schema: EXTENDED_SCHEMA },
);
With this schema, a YAML document can carry regular expressions (!!js/regexp), undefined (!!js/undefined) and JavaScript functions (!!js/function). The function tag is the dangerous one. When the parser encounters it, it reconstructs the function from the text using the following code:
function reconstructFunction(code: string) {
const func = new Function(`return ${code}`)();
if (!(func instanceof Function)) {
throw new TypeError(`Expected function but got ${typeof func}: ${code}`);
}
return func;
}
The code string comes straight from the YAML document and is interpolated into a new Function body, which is then invoked. Writing plain JavaScript into the document therefore executes it. The type check afterwards only runs once the code has already executed, so it does not constrain what the payload can do.
The result is arbitrary code execution in any application that parses untrusted YAML with EXTENDED_SCHEMA. This is CVE-2021-42139.
Step 2: Path traversal in the subdir parameter
The subdir value reaches clonePath without any modification until this code:
const path = (subdir === undefined ? clonePath : join(
clonePath,
subdir.replace(
/(^\/|\/$)/g,
"",
),
));
The only transformation is stripping a leading or trailing slash. .. segments are left untouched, and join resolves them, so the resulting path can point outside the clone directory. That path is then walked:
const entries = [];
for await (
const entry of walk(path, {
includeFiles: true,
includeDirs: true,
})
) {
entries.push(entry);
}
console.log("Total files in repo", entries.length);
const directory: DirectoryListingFile[] = [];
await collectAsyncIterable(pooledMap(100, entries, async (entry) => {
const filename = entry.path.substring(path.length);
if (filename.startsWith("/.git/") || filename === "/.git") return;
if (entry.isFile) {
const stat = await Deno.stat(entry.path);
directory.push({ path: filename, size: stat.size, type: "file" });
} else {
directory.push({ path: filename, size: undefined, type: "dir" });
}
}));
Every file and directory under path is collected into directory, with .git entries skipped. The collected files are then read and uploaded:
await collectAsyncIterable(pooledMap(65, directory, async (entry) => {
if (entry.type === "file") {
const file = await Deno.open(join(path, entry.path));
const body = await Deno.readAll(file);
await uploadVersionRaw(
moduleName,
version,
entry.path,
body,
);
file.close();
}
}));
Each file is opened, read in full and passed to uploadVersionRaw, which uploads the content to S3 with public-read access. Nothing checks that the file lies inside the cloned repository.
Step 3: Reading files outside the clone
Because of the traversal, a subdir value such as ../../../../../../../etc causes every file in /etc to be uploaded. In practice the walk is likely to be interrupted partway through by permission errors, but files uploaded before the interruption remain in S3.
Step 4: From file read to package tampering
The more interesting target is /proc. Setting subdir to something like ../../../../../../../proc/self lets the attacker read /proc/self/environ, which contains the AWS credentials used to store modules in S3. With those credentials, an attacker could overwrite the files of any module hosted on deno.land/x.
Root cause
Two separate mistakes.
In encoding/yaml, the extended schema implements !!js/function by evaluating the document's text with new Function. The parser treats YAML content as trusted code, so any application that parses attacker-supplied YAML with EXTENDED_SCHEMA hands over code execution. The instanceof Function check happens after evaluation and does not mitigate anything.
In deno.land/x, the subdir parameter is concatenated onto the clone path with only leading and trailing slashes removed. There is no normalisation and no check that the resolved path stays inside the clone directory, so .. segments traverse freely. The walk and upload code then trusts the resulting path completely, and the upload target is S3 with public read access, which turns a local file read into public disclosure. The S3 credentials were reachable through the process environment, where a file read could reach them.
Impact
For encoding/yaml, the impact is arbitrary code execution in any Deno application that parses untrusted YAML using EXTENDED_SCHEMA. Applications using the default schema are not affected by this path.
For deno.land/x, an attacker could read arbitrary files on the system running the service. The most serious consequence is theft of the AWS credentials used to store modules in S3, which would allow tampering with any package hosted on deno.land/x. deno.land/x hosts modules including the Deno install script and is central to the ecosystem. The report hedges this: the vulnerability was reported as a potential issue without live testing, and the author notes the information may be inaccurate. After the fix, the Deno team reviewed access logs for the AWS credentials and confirmed the vulnerability had not been exploited.
Fix
Both issues were fixed by pull request.
encoding/yaml: the fix removed support for functions inEXTENDED_SCHEMA(denoland/deno_std PR #1275).- deno.land/x: the fix changed the code to normalise the
subdirparameter (denoland/deno_registry2 PR #244).
Variants to test
- Other YAML parsers with extended or unsafe schemas. Look for tags that construct executable or otherwise dangerous objects, such as function, regexp or custom class tags. A positive result is a document that causes code to run or an object to be instantiated when parsed.
- Other path parameters joined onto a base directory. Look for parameters like
subdir,path,dirorfolderthat are concatenated and then used in file walks, reads or uploads. A positive result is a value containing..segments that causes files outside the intended directory to be listed, read or uploaded. - Upload pipelines that publish to public storage. Where a service uploads walked files to S3 or similar with public read access, check whether the walk root can be influenced. A positive result is a file from outside the intended tree appearing at a public URL.
- Credentials in the process environment. On any service with a file read primitive, check whether
/proc/self/environor equivalent exposes cloud credentials. A positive result is credentials that grant write access to the storage backing the service.
What happened, in plain words
Deno is a piece of software that runs JavaScript and TypeScript programs. Its makers advertise it as "simple, modern and secure". Someone read that sentence on the official website and wondered how secure it really is, so they read the code of three related projects to look for mistakes.
They found three problems. One was already known and is not discussed here. The other two are the subject of this article:
- A package in Deno's standard library, called
encoding/yaml, could be tricked into running JavaScript that an attacker wrote inside a YAML document. - The website deno.land/x, which hosts Deno modules for everyone to download, could be tricked into reading files from anywhere on its own server. Because one of those files holds the passwords (credentials) that let the site write to its cloud storage, an attacker could have used this to replace the contents of any package hosted there.
The second problem is the serious one: it would have allowed tampering with any package hosted on deno.land/x. The author stresses that the findings were reported as potential problems based on reading the code, not by actually attacking the live service, and that the details may therefore be inaccurate.
A word on the rules: Deno Land Inc. the company behind Deno, does not run a bug bounty programme (a scheme that pays people for reporting security bugs) and has not given explicit permission for anyone to test its services for vulnerabilities. The author says the issues were reported without attacking or verifying the live service. If you find a vulnerability in a Deno Land Inc. service, the article says to report it to [redacted]
The background: what Deno and deno.land/x are
Before the findings, some context, because the rest of the article depends on it.
Deno is a runtime: a program that takes source code written by a person and executes it. The official site describes it with this sentence, which is what started the investigation:
Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust.
In plain terms: it runs JavaScript and TypeScript (two closely related programming languages), it uses V8 (the same engine that powers Google Chrome) to execute them, and it is itself written in Rust (another programming language, known for safety). The word that caught the author's eye was "secure".
deno.land/x is a website that hosts modules. A module is a reusable bundle of code that other people can download and use in their own programs, a bit like a recipe that other cooks can follow instead of inventing the dish themselves. deno.land/x is connected to GitHub (a website where people store and share code) and can automatically publish a new version of a module whenever the author makes a release on GitHub. It hosts a large number of modules, including the script people run to install Deno itself, so it sits at the centre of the Deno world.
By default, that GitHub connection uploads every file in the repository (the project's folder of code). That makes releases bigger than they need to be, so the service offers a setting called subdir that lets the author say "only upload this subfolder". Keep that setting in mind: it is where the second bug lives.
How the research was done
The author did not have time to read every related piece of software, so they limited themselves to skimming three code repositories:
denoland/deno: the core of Deno, the runtime itself.denoland/deno_std: the Deno standard library, a collection of extra modules kept in its own repository and not built into the runtime.denoland/deno_registry2: the code that runs deno.land/x.
This is called a source code review: reading the code carefully, looking for mistakes, rather than poking at a running website. It is like proofreading a recipe book instead of tasting every dish.
Three vulnerabilities turned up, one per project. The one in the core runtime was already a known issue, so the article skips it. The other two are explained below.
Finding 1: code injection in encoding/yaml
What YAML is
YAML is a way of writing data as plain text, using indentation to show structure. Configuration files often use it because it is easy for humans to read. Here is a tiny example of the shape:
A program that reads such a file is called a parser: it takes the text and turns it into data the program can use.
What a schema is
The encoding/yaml package in the standard library can parse YAML in different modes, called schemas. A schema is a set of rules for what the text is allowed to mean. The default schema is the ordinary one. There is also an extended schema, which adds extra abilities: it lets a YAML document describe regular expressions (patterns used for matching text), the special value undefined (meaning "no value"), and JavaScript functions (small blocks of code).
The extended schema is not on by default. A programmer has to ask for it explicitly by passing EXTENDED_SCHEMA to the parsing function, as in this example from the article:
import {
EXTENDED_SCHEMA,
parse,
} from "https://deno.land/std@$STD_VERSION/encoding/yaml.ts";
const data = parse(
`
regexp:
simple: !!js/regexp foobar
modifiers: !!js/regexp /foobar/mi
undefined: !!js/undefined ~
function: !!js/function >
function foobar() {
return 'hello world!';
}
`,
{ schema: EXTENDED_SCHEMA },
);
Line by line:
- The
importblock loads two things from the standard library's YAML file:EXTENDED_SCHEMA(the set of extra rules) andparse(the function that reads YAML text). The URL is where the code lives;$STD_VERSIONis a placeholder for a version number. const data = parse(...)calls the parser and stores the result in a variable calleddata.- The big block between backticks is the YAML document itself. Backticks in TypeScript let you write a multi-line piece of text.
!!js/regexp foobarand!!js/regexp /foobar/miare YAML tags. A tag is a label starting with!!that tells the parser "treat the following text as this special kind of thing". Here the text is to be treated as a regular expression.!!js/undefined ~says the value isundefined; the~is YAML's way of writing "nothing".!!js/function >says the following indented text is a JavaScript function. The>is YAML syntax for a folded block of text.- The function itself is
function foobar() { return 'hello world!'; }, which simply returns the words "hello world!". - The second argument,
{ schema: EXTENDED_SCHEMA }, is what switches the extended rules on.
So far, so harmless: the example function only returns a greeting. The problem is how the parser turns that text into a real function.
The dangerous part
When the parser meets a !!js/function tag, it runs this code:
function reconstructFunction(code: string) {
const func = new Function(`return ${code}`)();
if (!(func instanceof Function)) {
throw new TypeError(`Expected function but got ${typeof func}: ${code}`);
}
return func;
}
Line by line:
function reconstructFunction(code: string)defines a function that takes one input,code, which is a piece of text.new Function(...)is a JavaScript feature that turns a string into executable code. Whatever text you give it becomes a program. Here the text is`return ${code}`, meaning the wordreturnfollowed by whatever was incode.- The
()at the end immediately runs that newly built program. - The
ifline then checks whether the result really is a function. If not, it throws an error. return func;hands the function back to the caller.
The key point: code comes straight from the YAML document, which may have been written by an attacker. If the document contains JavaScript, that JavaScript is placed inside new Function and executed. The check afterwards happens too late: by the time it runs, the code has already done whatever it was going to do. It is like a bouncer who checks your ticket only after you are already inside the concert.
The consequence is called code injection: untrusted text is treated as code and run. Any program that parses untrusted YAML with EXTENDED_SCHEMA can be made to run the attacker's JavaScript. This issue is tracked as CVE-2021-42139; a CVE is a public catalogue number for a known vulnerability, so people can refer to it unambiguously.
The fix
The problem was fixed in a pull request (a proposed change to a code repository, which other people review before it is merged) numbered #1275 in the deno_std repository. The fix removed support for functions in EXTENDED_SCHEMA altogether. If the feature cannot express functions, there is nothing to execute.
Finding 2: reading any file on the deno.land/x server
The subdir setting
As explained earlier, deno.land/x copies a GitHub repository and uploads its files to storage. The subdir setting lets the author restrict the upload to one folder inside the repository. The service takes the folder where it copied the repository (called clonePath in the code) and sticks the subdir value on the end.
That sounds simple, but joining text onto a path is a classic source of bugs. A path is the address of a file on a computer, like /home/user/project. Two dots, .., mean "go up one folder". So if you join ../../.. onto /home/user/project, you end up somewhere far above the project folder. This trick is called path traversal, and it is how an attacker escapes a folder they are supposed to be confined to.
The vulnerable code
The subdir value travels unchanged until it reaches this code:
const path = (subdir === undefined ? clonePath : join(
clonePath,
subdir.replace(
/(^\/|\/$)/g,
"",
),
));
Line by line:
const path = (...)creates a variable calledpath, which will hold the final folder to work with.subdir === undefined ? clonePath : ...is a shorthand if/else: if nosubdirwas given, useclonePath(the whole repository); otherwise, do the rest.join(clonePath, ...)glues the repository folder and thesubdirvalue together into one path.subdir.replace(/(^\/|\/$)/g, "")removes a slash at the very start or the very end of thesubdirvalue. The pattern^\/means "a slash at the beginning",\/$means "a slash at the end", and thegmeans "do this everywhere it matches".
That is the only cleaning applied. Nothing removes .. segments, and nothing checks that the final path still sits inside the repository folder. So a subdir of ../../.. walks upwards out of the repository, and join happily produces a path somewhere else on the server.
Walking the folder
Once path is built, the service lists everything underneath it:
const entries = [];
for await (
const entry of walk(path, {
includeFiles: true,
includeDirs: true,
})
) {
entries.push(entry);
}
console.log("Total files in repo", entries.length);
const directory: DirectoryListingFile[] = [];
await collectAsyncIterable(pooledMap(100, entries, async (entry) => {
const filename = entry.path.substring(path.length);
if (filename.startsWith("/.git/") || filename === "/.git") return;
if (entry.isFile) {
const stat = await Deno.stat(entry.path);
directory.push({ path: filename, size: stat.size, type: "file" });
} else {
directory.push({ path: filename, size: undefined, type: "dir" });
}
}));
Line by line:
const entries = [];creates an empty list to hold what is found.for await (const entry of walk(path, ...))uses a function calledwalkto go through everything underpath, one item at a time.includeFiles: trueandincludeDirs: truemean "include both files and folders".entries.push(entry);adds each item to the list.console.log("Total files in repo", entries.length);prints how many items were found. This is just a log message for the operators.const directory: DirectoryListingFile[] = [];creates a second, empty list that will describe each item.collectAsyncIterable(pooledMap(100, entries, async (entry) => { ... }))processes the items, up to 100 at a time, running the inner function on each one.const filename = entry.path.substring(path.length);trims the starting folder off the full path, leaving just the part relative topath. For example, ifpathis/repoand the item is/repo/src/main.ts,filenamebecomes/src/main.ts.if (filename.startsWith("/.git/") || filename === "/.git") return;skips the.gitfolder..gitis where Git keeps its internal bookkeeping, and it is not useful to publish.- If the item is a file,
Deno.stat(entry.path)reads its size, and a record{ path: filename, size: stat.size, type: "file" }is added todirectory. - Otherwise it is a folder, and a record with
type: "dir"and no size is added.
So far the service has only made a list. The next block is where files actually leave the server:
await collectAsyncIterable(pooledMap(65, directory, async (entry) => {
if (entry.type === "file") {
const file = await Deno.open(join(path, entry.path));
const body = await Deno.readAll(file);
await uploadVersionRaw(
moduleName,
version,
entry.path,
body,
);
file.close();
}
}));
Line by line:
- Again,
collectAsyncIterable(pooledMap(65, directory, ...))goes through the list, 65 items at a time. if (entry.type === "file")ignores folders; only files are uploaded.Deno.open(join(path, entry.path))opens the file at its full location.Deno.readAll(file)reads the whole file into memory asbody.uploadVersionRaw(moduleName, version, entry.path, body)sends the content to storage, under the module's name and version.file.close();closes the file handle, freeing the resource.
The important detail is that uploadVersionRaw uploads to S3 (Amazon's cloud storage service) with an access setting called public-read, which means anyone on the internet can download the file. And nowhere does the code check that the file being read actually lives inside the cloned repository. The list came from path, and path can point anywhere.
What an attacker could do with it
Because of the traversal, a subdir value such as ../../../../../../../etc makes the service walk the /etc folder, which on Linux holds system configuration files, and upload every file it finds there to public storage.
In practice, the walk would probably stop partway through, because the service's user account is not allowed to read every file. But files uploaded before the stop stay in S3. A partial leak is still a leak.
The more valuable target
/etc is interesting, but the article points at something better: /proc. On Linux, /proc is a special folder that the operating system generates on the fly to describe running programs. /proc/self means "the program asking", and /proc/self/environ is a file listing that program's environment variables.
Environment variables are named values a program receives from the system when it starts. They are commonly used to pass in configuration, including secrets such as cloud credentials. A credential here means a key or password that proves to a cloud service who you are and what you may do.
So a subdir of ../../../../../../../proc/self would make the service upload its own environment, including the AWS credentials it uses to write modules into S3. With those credentials, an attacker could replace the files of any module hosted on deno.land/x. That is the package tampering in the title.
The fix
The problem was fixed in pull request #244 in the deno_registry2 repository, which changed the code to normalise the subdir parameter. Normalising means cleaning a path up properly, resolving .. segments and confirming the result stays where it should, instead of just trimming slashes.
After the fix, the Deno team checked the access logs for the AWS credentials and confirmed that the vulnerability had not been exploited in the wild.
Why the bugs existed
Two separate mistakes, each simple on its own.
In encoding/yaml, the extended schema implemented !!js/function by evaluating the document's text with new Function. The parser treated YAML content as trusted code. The check that the result is a function ran after the code had already executed, so it protected nothing.
In deno.land/x, the subdir parameter was glued onto the clone path with only leading and trailing slashes removed. There was no normalisation and no check that the result stayed inside the clone folder, so .. segments escaped freely. The walk and upload code then trusted the path completely, and because uploads went to S3 with public read access, a local file read became a public disclosure. The S3 credentials were reachable through the process environment, where a file read could reach them.
What the impact was
For encoding/yaml, the impact is code execution in any Deno application that parses untrusted YAML with EXTENDED_SCHEMA. Applications that use the default schema are not affected by this route.
For deno.land/x, an attacker could read any file on the server running the service. The worst consequence is theft of the AWS credentials used to store modules in S3, which would allow tampering with any package hosted there. deno.land/x hosts modules including the Deno install script and is central to the ecosystem. The article is careful here: the issue was reported as a potential problem without live testing, and the author notes the information may be inaccurate. After the fix, the Deno team reviewed access logs for the AWS credentials and confirmed the vulnerability had not been exploited.
How to look for similar bugs
Four things worth checking in other projects, each with a clear sign of success.
- Other YAML parsers with extended or unsafe schemas. Look for tags that build executable or otherwise dangerous objects, such as function, regexp or custom class tags. A positive result is a document that causes code to run or an object to be created when parsed.
- Other path parameters joined onto a base folder. Look for parameters like
subdir,path,dirorfolderthat are glued together and then used to list, read or upload files. A positive result is a value containing..segments that causes files outside the intended folder to be listed, read or uploaded. - Upload pipelines that publish to public storage. Where a service uploads listed files to S3 or similar with public read access, check whether the starting folder can be influenced. A positive result is a file from outside the intended tree appearing at a public URL.
- Credentials in the process environment. On any service that can be made to read a file, check whether
/proc/self/environor an equivalent exposes cloud credentials. A positive result is credentials that grant write access to the storage behind the service.
Timeline
The article gives the following dates, in Japan time:
| Date | Event |
|---|---|
| 2021/09/13 | Vulnerability discovered |
| 2021/09/14 | Vulnerability reported |
| 2021/09/14 | Vulnerability fixed |
| 2021/09/15 | Asked whether disclosure would be acceptable |
| 2021/10/07 | Permission to disclose granted |
| 2021/11/30 | Article published |
Closing thought
The article ends with a simple observation: no matter how loudly a project advertises itself as "secure", avoiding every mistake is hard. Security is not a badge you earn once; it is something you keep checking.
Glossary
- API: a defined way for one program to ask another program to do something, like a menu of requests a service accepts.
- AWS: Amazon Web Services, Amazon's cloud platform, which offers storage and computing over the internet.
- Bug bounty programme: a scheme where a company pays people for reporting security problems in its products.
- Clone: a local copy of a code repository, usually made with Git.
- Code injection: a bug where untrusted text is treated as code and executed.
- Credential: a key, password or token that proves who you are to a service and what you may do.
- CVE: a public catalogue number for a known vulnerability, so people can refer to it unambiguously.
- deno.land/x: the website that hosts Deno modules and publishes them from GitHub releases.
- Deno: a runtime for JavaScript and TypeScript, built on V8 and Rust.
- Environment variable: a named value a program receives from the operating system when it starts, often used for configuration and secrets.
- Extended schema: in
encoding/yaml, an optional set of parsing rules that adds regular expressions,undefinedand JavaScript functions to YAML. - Function: a reusable block of code that performs a task and can be called by name.
- GitHub: a website for storing and sharing code repositories.
- JavaScript: a programming language, mainly used for code that runs in browsers and on runtimes such as Deno.
- Module: a reusable bundle of code that others can download and use.
- Normalise (a path): clean a path up properly, resolving
..segments and confirming the result stays where it should. new Function: a JavaScript feature that turns a string into executable code.- Parser: a program that reads text in some format and turns it into data a program can use.
- Path: the address of a file or folder on a computer, such as
/home/user/project. - Path traversal: a bug where
..segments in a path let someone escape the folder they are supposed to be confined to. /proc: on Linux, a special folder generated by the operating system that describes running programs;/proc/selfmeans the program asking, and/proc/self/environlists its environment variables.- Public read: an access setting that lets anyone on the internet download a file.
- Pull request: a proposed change to a code repository, reviewed by others before it is merged.
- Regular expression: a pattern used to match text.
- Repository: a project's folder of code, usually tracked with Git.
- Runtime: a program that executes source code written by a person.
- Rust: a programming language known for safety, used to build Deno.
- S3: Amazon's cloud storage service.
- Schema: a set of rules for what a document is allowed to mean when parsed.
- Source code review: reading code carefully to look for mistakes, rather than testing a running system.
- Standard library: a collection of extra modules shipped alongside a language or runtime, kept separate from the core.
subdir: the deno.land/x setting that restricts an upload to one folder inside the repository.- Tag (YAML): a label starting with
!!that tells the parser to treat the following text as a special kind of value. - TypeScript: a programming language that adds type information to JavaScript.
undefined: a special value meaning "no value".- V8: the JavaScript engine that powers Google Chrome and Deno.
- Vulnerability: a mistake in software that someone can abuse to make it behave in ways its author did not intend.
- YAML: a plain-text format for writing data, using indentation to show structure.